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

iOS: Is it possible to display a notification to the notification tray without a banner? #382

Closed
cenzovit opened this issue Apr 22, 2022 · 3 comments

Comments

@cenzovit
Copy link

Hello! This is probably more of an enhancement request, but when my app is in the foreground, there are certain screens where I would like to display a notification in the notification tray without showing a banner. Taking a cursory look at apple documentation, it appears this should be possible (https://developer.apple.com/documentation/usernotifications/unnotificationpresentationoptions?language=objc). Is this possible with notifee?

@mikehardy
Copy link
Contributor

Is the one you mean? https://developer.apple.com/documentation/usernotifications/unnotificationpresentationoptions/unnotificationpresentationoptionlist?language=objc

it appears not https://notifee.app/react-native/reference/iosforegroundpresentationoptions

Wouldn't be too awful a PR I think

export interface IOSForegroundPresentationOptions {

BOOL alert = [foregroundPresentationOptions[@"alert"] boolValue];

...and I think that's it? Adding it to the example so it's testable would be ideal, just slapping another button on there would do it :-)

@helenaford
Copy link
Member

Ooh this would be great as an enhancement, and it looks like the alert is deprecated now.

@helenaford helenaford changed the title Is it possible to display a notification to the notification tray without a banner on iOS? iOS: Is it possible to display a notification to the notification tray without a banner? Jun 12, 2022
@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants