Skip to main content

Hello, i want to implement heads up push notificaiton in Android . like IOS have and some other apps like whatapp etc have when app is closed or backgroup notifcation comes as heads up

 

 

Hi Chetan,

I suppose that the Android App already has the Freshchat SDK set up done, since this question is posted under Freshchat.

Please refer to the following solution article, in which the push notification set up is explained.
https://support.freshchat.com/en/support/solutions/articles/50000000207-freshchat-android-sdk-integration-steps

 

 

 


Hi @chetan33853 :

Please use this latest article and videos to implement the push notifications module to your app:

  1. Updated doc -https://crmsupport.freshworks.com/en/support/solutions/articles/50000002717-how-to-integrate-android-sdk-for-chat-
  2. Please ensure to read this developer document on how to handle notifications: https://developers.freshchat.com/mobile/#handle-push-notifications
  3. Sample: https://github.com/freshdesk/freshchat-android/tree/master/Sample/FCPushNotificationSample

Hope this helps:)


  • Set Up Firebase Cloud Messaging (FCM): Add FCM to your project via build.gradle and configure it in the Firebase Console.

  • Create a Service: Extend FirebaseMessagingService to handle incoming messages and create notifications.

  • Build Notification: Use NotificationCompat.Builder, set setPriority(NotificationCompat.PRIORITY_HIGH) for heads-up notifications.

  • Create Notification Channel: For Android 8.0+, create a notification channel with IMPORTANCE_HIGH.

  • Send Notifications: Use FCM to send messages with the food menu updates.


Reply