Open Zanluca opened 3 years ago
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>
#import <UserNotifications/UserNotifications.h>
@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
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
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:
at the end add UserNotifications.framework under Linked Frameworks and Libraries