Foreground notifications on Android #126
-
Hi, My app is receiving push notifications successfully on both iOS and Android. However there is a difference in behaviour between the 2 operating systems when the app is in the foreground. For both systems, when the app is closed or in the background, there is an onscreen notification which then shows in the system bar/Notification Center. On iOS, when the app is in the foreground, the behaviour is the same. But on Android, there is no on-screen popup or indication to the user. I get the NotificationReceived event, but nothing shows on screen. How can I make Android behave in the same way regardless of whether the app is in focus? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Thanks for this feedback, @jkuek. The original idea was to not display the OS popup while the apps run in foreground (unless you send high priority notifications). I‘ll check what‘s wrong in the iOS part of the library. |
Beta Was this translation helpful? Give feedback.
-
Well, actually I want the notifications to be displayed when the app is in the foreground on Android and iOS. I believe I am sending only high priority notifications - would you expect Android to display in the foreground if that is the case? |
Beta Was this translation helpful? Give feedback.
Issue #132 with PR #131 is the attempt to solve the issue we discuss here. Maybe we can switch to the issue for further discussions, okay?