Skip to content

Displaying notifications on Android when the app is foregrounded #912

Answered by aritchie
munkii asked this question in Q&A
Discussion options

You must be logged in to vote

Notifications don't really happen if your app is in the foreground (especially on iOS). From purely an android perspective, there may be some channel settings to allow this, but I'm not aware of what they are. You are best to use the foreground events like pushManager.WhenReceived() or in your delegate, send a message for your UI to do something (toast, etc).

As an FYI, if you do want to use the channel you've created, you also need to set it on your local notification. In your example code, it isn't being set

Replies: 2 comments 14 replies

Comment options

You must be logged in to vote
12 replies
@almirvuk
Comment options

@aritchie
Comment options

@almirvuk
Comment options

@aritchie
Comment options

@almirvuk
Comment options

Answer selected by munkii
Comment options

You must be logged in to vote
2 replies
@almirvuk
Comment options

@almirvuk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants