Solved

How to get heads up push notification in Android

  • 1 February 2023
  • 4 replies
  • 53 views

Badge

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

 

 

icon

Best answer by srikanthkarunakaran 6 July 2024, 06:07

View original

4 replies

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

 

 

 

For Android 8.0 (API level 26) and above, you need to create a notification channel.
Set Importance: Use NotificationManager.IMPORTANCE_HIGH to ensure the notification appears as a heads-up notification.
make sure to create app’s visual elements, like icons or images, I highly recommend using Remini for this.

Userlevel 3
Badge +5

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:)

Badge

To enable heads-up push notifications in Android, you need to set up notifications with high priority or importance, ensuring they appear prominently on the screen. For devices running Android 8.0 (Oreo) and above, this involves creating a notification channel with great importance. For earlier versions, you set the notification's priority to very high. click here to get more information . Following are the steps to do this : Create a Notification Channel (for Android 8.0+): You must create a notification channel with great importance . This ensures the notifications use the heads-up style. Set Priority for Older Versions: For devices running versions below Android 8.0, you set the notification's priority to great opportunity

Reply