Skip to content

How to display notification in foreground #4325

Answered by mikehardy
saurabh874 asked this question in Q&A
Discussion options

You must be logged in to vote

You will need to integrate a 3rd party notification library. I would embrace it vs rejecting it. Proper on-device notification handling is an important set of features for an app and should be treated as such.

Notifications can be displayed easily on device with the built in handling of notification payloads in all but foreground state @TommyLeong as @saurabh874 mentions. But the underlying SDKs don't handle notification payloads if the app is foreground. That's what a real notification package is for.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@TommyLeong
Comment options

Answer selected by andersonaddo
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