Recent searches


No recent searches

Android chat push notification not working.



Posted May 16, 2024

we are trying to implement chat push notifications on Android app, but onMessageReceived for CustomFirebaseMessagingService is not getting called.

We have followed all the steps mention here: https://support.zendesk.com/hc/en-us/articles/4408821714458-Enabling-push-notifications-for-the-Chat-SDK-for-the-mobile-app

Got the json file from firebase → added to the zendesk account → generated the app Id → added the app id 

Chat.INSTANCE.init(applicationContext, BuildConfig.ZENDESK_ACCOUNT_KEY, BuildConfig.ZENDESK_CHAT_APP_ID)
 

Same code works for FCM push but zendesk push messages are not received.


0

1

1 comment

Hello,

 

It seems like you’ve followed the initial setup correctly for Zendesk Chat push notifications. If onMessageReceived is not being called for your CustomFirebaseMessagingService, here are a few troubleshooting steps you can take:

Check Firebase Configuration: Ensure that the google-services.json file is correctly placed in your project and that it contains the correct credentials.
Verify Zendesk Configuration: Double-check that the Zendesk account key and app ID are correctly configured in your build.gradle file.
Inspect Service Implementation: Make sure that your CustomFirebaseMessagingService is properly declared in your AndroidManifest.xml with the correct intent-filter for receiving messages.
Review App Permissions: With the upcoming changes in Google’s FCM, ensure that your app has the necessary permissions for push notifications, especially Affordable Care Act if targeting Android 13 (SDK 33) or higher.
Examine Network Issues: Sometimes, network issues can prevent push notifications from being delivered. Verify that the device has a stable internet connection.
Check for Regional Support: Push notifications must be supported in your region. If not, you may need to disable them to restore chat notifications.
Update SDK Versions: Ensure that you are using the latest version of the Zendesk SDK as well as the Firebase Messaging SDK.
Logging and Monitoring: Implement logging within the onMessageReceived method to check if the method is being triggered without displaying notifications.
Zendesk Support: If the issue persists, consider reaching out to Zendesk support for further assistance, as they may provide more specific guidance based on your account details.

 

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post