Simple Fuse app. Receives notifications from Firebase. For Android is pretty straight forward but the issue comes in iOS. The user registers to APNS (Apple Push Notification System) but in order to work with Firebase we need to convert that ID to FCM (Firebase Cloud Messaging) and we do that with the following script:
https://gist.github.com/LuisRodriguezLD/0257300f08eae90e97d81682148c8b22
(Shout out to @jesusmartinoza for the code)
For the next step you are going to need the Sender ID and the API key, both can be found in the project settings.
.unoproj
chande the bundle identifier and use your own..unoproj
chande the Sender ID.line 32
with your package nameline 44
with your api key -adebug
and manually make sure Push Notifications is on
line 33
to false
From the Firebase console send a notification, you can either choose everyone who has the app or a specific user.
iOS Working | iOS Payload | Android Working |
---|---|---|