Hi,
I have followed below instruction to enable Push Notification.
private val intercomPushClient = IntercomPushClient()
override fun onNewToken(refreshedToken: String) {
intercomPushClient.sendTokenToIntercom(application, refreshedToken)
// DO HOST LOGIC HERE
}
override fun onMessageReceived(remoteMessage: RemoteMessage) {
val message = remoteMessage.data
if (intercomPushClient.isIntercomPush(message)) {
intercomPushClient.handlePush(application, message)
} else {
// DO HOST LOGIC HERE
}
}
I can see Push notification arriving when App is in background (either by back or home button press), and can click and navigate to Messenger Home
But When App is in foreground (App Open state or visible), I cannot se the Notification in the Status bar, although onMessageReceived is triggered and intercomPushClient.isIntercomPush(message) = true.
Can you please advise what needs to be done here