LuisRodriguezLD / Fuse-Firebase-Notifications

Simple app. Receives notifications from Firebase
MIT License
1 stars 1 forks source link

Fuse Firebase Notifications

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)

Requirements

Sender ID and API Key

For the next step you are going to need the Sender ID and the API key, both can be found in the project settings. Alt text Alt text

Making the example work

Important iOS

Testing

From the Firebase console send a notification, you can either choose everyone who has the app or a specific user. Alt text

Obligatory Pics

iOS Working iOS Payload Android Working
Alt text Alt text Alt text