Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(push-notifications): Allow to show while in foreground #919

Merged
merged 2 commits into from
Apr 18, 2022

Conversation

jcesarmobile
Copy link
Member

@jcesarmobile jcesarmobile commented Apr 8, 2022

use the existing presentationOptions object used on iOS to allow to show push notifications while in foreground
if present it will create a channel for displaying push notifications in foreground
if it contains "alert" it will display the push notification
if it contains "sound" it will create the channel with the default sound.
badge is not implemented because the plugin doesn't support badges at the moment for Android.

@jcesarmobile jcesarmobile merged commit a90b5fd into capacitor-4 Apr 18, 2022
@jcesarmobile jcesarmobile deleted the push-foreground branch April 18, 2022 15:58
@Lennix
Copy link

Lennix commented Dec 9, 2022

Maybe add a note that it only works from 26+ (I believe that's Android O)

hmaretic24 pushed a commit to hmaretic24/capacitor-plugins that referenced this pull request Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants