Skip to content

Why cannot I receive push messages 5.x?

Olga Koroleva edited this page Nov 9, 2022 · 1 revision

For 6.x version - Why cannot I receive push messages?

Check your Firebase sender id

Firebase sender id is a string identifier which is used by the SDK in order to obtain token information from the cloud. It should be from the same Firebase project as the server key configured at Infobip Portal. Usually you will specify sender id in string.xml file of your application together with application code:

<resources>
    <string name="google_app_id">YOUR FIREBASE SENDER ID</string>
    <string name="infobip_application_code">YOUR APPLICATION CODE</string>
    ...
</resources>

Sometimes you might already have Firebase configured for your project. Usually SDK manages such configurations automatically. If your device does not register on the platform, you cannot receive messages or you have conflicts in resources while building your application due to google_app_id identifier, then you can try to specify sender id via the builder of MobileMessaging API when initializing the library:

MobileMessaging.Builder()
    .withSenderId("YOUR FIREBASE SENDER ID")
    .build()
expand to see Java code

new MobileMessaging.Builder()
    .withSenderId("YOUR FIREBASE SENDER ID")
    .build()
Clone this wiki locally