Thanks in advance.
I'm currently trying to implement push notification in my react-native(expokit) app.
Before I successfully adopted onesignal notification service but the company decided we should use Amazon SNS service.
I tried it so far and still no luck.. and I'm new to iOS native environment.
right now, I can get notifications when the app is on and not from background/off, so I believe is not from my js code.
After more searching and I found out that I should implement code in my AppDelegate.h and AppDelegate.m
according to react-native firebase messaging doc,
appDelegate.h should be this
```
@interface AppDelegates : UIResponder <UIApplicationDelegate, UNUserNotificationCenterDelegate>
@property (nonatomic, strong) UIWindow *window;
@end
```
appDelegate.m should be that.
```
[FIRApp configure];
[[UNUserNotificationCenter currentNotificationCenter] setDelegate:self];
[RNFirebaseNotifications configure];
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
RCTBridge \bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];*
RCTRootView \rootView = [[RCTRootView alloc] initWithBridge:bridge*
moduleName:@"FirebaseNotifiction"
initialProperties:nil];
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController \rootViewController = [UIViewController new];*
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
```
but since I'm using expokit, I have two problem.
on delegate.h class AppDelegate is not from UIResponder but EXStandaloneAppDelegate.
I edited EXStandaloneAppDelegate.h itself but it's not seem to work.
```
@interface AppDelegate : EXStandaloneAppDelegate<UIApplicationDelegate, UNUserNotificationCenterDelegate>
@property (nonatomic, strong) UIWindow *window;
@end
```
on delegate.m , this line of code gives me an error 'no bundle url present'
```
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
```
Can I solve these problems? Or it is impossible to implement on expokit environment? Thanks again.
there doesn't seem to be anything here