Identifierssection, go to the
App IDsand click the
App Description: Input your app name here (e.g. Cordova Firebase Demo)
Explicit ID: Select this option because a Wildcard App ID is not allowed for push notifications. Input a unique identifier for your app (e.g. io.monaca.firebase).
App Servicessection and tick the Push Notifications option. Then, click Continue.
Confirm your App IDpage. Click Register to complete the process.
Push Notificationssection, click Create Cerficate under
Development SSL Certificate.
p12file. You will need it for the Firebase configuration in the upcoming section.
GoogleService-Info.plistfile and place it in the root folder of your project. After that, click CONTINUE.
Project settingsand select CLOUD MESSAGING.
Generalsection, click ADD APP and select Android.
google-services.jsonfile and place it in the root folder of your project. After that, click CONTINUE.
true, the device will be set up to receive VoIP Push notifications and the other options will be ignored since VoIP notifications are silent notifications that should be handled in the
true, the device shows an alert on receipt of notification.*
true, the device sets the badge number on receipt of notification.*
true, the device plays a sound on receipt of notification.*
true, the badge will be cleared on app startup.
*: Please note that the value you set this option to the first time you call the init method will be how the application always acts. Once this is set programmatically in the init method it can only be changed manually by the user in . This is normal iOS behaviour.
true, it plays the sound specified in the push data or the default system sound.
truethe device vibrates on receipt of notification.
truethe icon badge will be cleared on init and before push messages are processed.
true, the app clears all pending notifications when it is closed.
0will clear the badge. Each
notificationevent contains a data.count value which can be used to set the badge to correct number.
notificationwill be triggered each time a push notification is received by a 3rd party push service on the device.