iOS Question Problem with FCM Push and iOS 13

Ohanian

Active Member
Licensed User
Longtime User
Hello,

We're developing an app for a customer, he needs push capability so we use FCM, in the development phase we've checked sending and receiving push and everything was fine, but after publishing app on the app store it seems some of the devices are unable to receive push message, even our test device has the same problem.
the test device is on iOS 13.3.1 and we're using SendingTool to send messages.
is there any change in iOS 13 that prevents the app from receiving the FCMmessages?
 

Ohanian

Active Member
Licensed User
Longtime User
No.

Test devices can make these problems. Try to uninstall the app and reinstall it from the store.

Hi,

already did that but there's no difference.
 
Upvote 0

Ohanian

Active Member
Licensed User
Longtime User
Is this related to my problem?

With release of iOS13, Apple introduce a new APNS header attribute “apns-push-type”, below is the extract from Apple documentation :
“required when delivering notifications to devices running iOS 13”. Furthermore “if the header is missing on required systems, APNs may delay the delivery of the notification or drop it altogether.”
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I don't think that it is related however try to add it like this in the B4J code:
B4X:
If Topic.StartsWith("ios_") Then
    Dim iosalert As Map =  CreateMap("title": Title, "body": Body, "sound": "default")
    m.Put("notification", iosalert)
    m.Put("apns", CreateMap("headers": CreateMap("apns-push-type": "alert")))
End If
 
Upvote 0
Top