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

Hide Notifications if app is in foreground (android and ios) #40

Closed
Daniel0b1b opened this issue Feb 19, 2020 · 1 comment
Closed

Hide Notifications if app is in foreground (android and ios) #40

Daniel0b1b opened this issue Feb 19, 2020 · 1 comment

Comments

@Daniel0b1b
Copy link

How can I achieve notifications are not displayed if app is in the foreground on android/ios?
Only the event OnNotificationReceived or another event should be triggered.

@Daniel0b1b
Copy link
Author

Just add the silent key to the data payload .

    "data":
    {    
        "title": "Testtitel",
        "body" : "Notification Hub test notification2",
        "silent" : "true"
    }

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

No branches or pull requests

1 participant