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

Needed add extra code to work foreground notification at iOS #31

Open
Zanluca opened this issue Oct 15, 2021 · 1 comment
Open

Needed add extra code to work foreground notification at iOS #31

Zanluca opened this issue Oct 15, 2021 · 1 comment

Comments

@Zanluca
Copy link

Zanluca commented Oct 15, 2021

For foreground work correct at iOS I need do this changes on AppDelegate.h:

#import <UserNotifications/UserNotifications.h>
and
@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate, UNUserNotificationCenterDelegate>

On AppDelegate.m:

UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
          center.delegate = self;
  
    [PushIOManager sharedInstance].notificationPresentationOptions = UNNotificationPresentationOptionAlert|UNNotificationPresentationOptionSound|UNNotificationPresentationOptionBadge;

at the end add UserNotifications.framework under Linked Frameworks and Libraries

@uptscs
Copy link

uptscs commented Oct 18, 2021

right, it's documented for native SDK. It makes sense to add those details in React-Native as well:
https://docs.oracle.com/en/cloud/saas/marketing/responsys-develop-mobile/ios/running-alerts.htm

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

2 participants