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

How to enable foreground notifications on android & iOS? #173

Open
1 task
KiranC10 opened this issue Sep 8, 2020 · 2 comments
Open
1 task

How to enable foreground notifications on android & iOS? #173

KiranC10 opened this issue Sep 8, 2020 · 2 comments

Comments

@KiranC10
Copy link

KiranC10 commented Sep 8, 2020

Report

Environment

  • Platforms:
  • Android version:
  • iOS version:

Issues and Steps to Reproduce

Replaces this with steps to repro your issue, if applicable.

Expected Behavior

Describe what you expected would happen.

Actual Behavior

Describe what actually happened. Include screenshots, if applicable.

Link to Code

If you have some code that maintainers can clone/test for themselves, bugs can be resolved much faster. Please paste a link here.

@KiranC10 KiranC10 changed the title How to set notification icon? How to enable foreground notifications on android & iOS? Sep 9, 2020
@nithinyell
Copy link

Android

We have used "react-native-notifications": "^3.3.4"`

iOS:

- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler {
  
  [RCTAzureNotificationHubManager userNotificationCenter:center willPresentNotification:notification withCompletionHandler:^(UNNotificationPresentationOptions options) {
    completionHandler(UNNotificationPresentationOptionAlert);
  }];
}

@potatoengineer
Copy link

UNNotificationPresentationOptionAlert has been deprecated

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

3 participants