iOS Question No notifications after april 2020 update

janderkan

Well-Known Member
Licensed User
Longtime User
I am using your B4J non-ui sending tool.
There is nothing in the logs.
It sends OK, but no notification in B4I.
It was working before updating the 3 files.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
What about this?
B4X:
Sub Application_PushToken (Success As Boolean, Token() As Byte)
    Log($"PushToken: ${Success}"$)
    Log(LastException)
End Sub

And:
B4X:
Private Sub fm_FCMConnected
    Log("FCMConnected")
    'here we can subscribe and unsubscribe from topics
    fm.SubscribeToTopic("ios_general") 'add ios_ prefix to all topics
End Sub

Are you sending the message when the app is in the background?
 
Upvote 0

janderkan

Well-Known Member
Licensed User
Longtime User
This was my iOS app configuration in Firebase console:

Old conf.jpg


After the april 2020 update I did not receive notifications anymore.
So I decided to go for the APN auth key instead.

Go to your Apple developer account and create a P8 file.

Key.jpg


You just have 1 key for all your Apps and it can only be downloaded 1 time, so save it in a place where you can find it again.
Then upload it to Firebase:

New conf.jpg


Now the notifications is working again.
 
Upvote 0
Top