You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi team,
After upgrading to a new version of React Native (expo), the app won't start.
Got fatal error here
public func devLauncherController(_ developmentClientController: EXDevLauncherController, didStartWithSuccess success: Bool) {
guard let rctAppDelegate = (UIApplication.shared.delegate as? RCTAppDelegate) else {
fatalError("The `UIApplication.shared.delegate` is not a `RCTAppDelegate` instance.")
}
...
}
I found a problem with [WonderPush setupDelegateForApplication:application]; when I commented that this app works normally.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.moduleName = @"main";
[WonderPush setClientId:@"---" secret:@"----"];
// [WonderPush setupDelegateForApplication:application]; // –> Comment this and the app start
[WonderPush setupDelegateForUserNotificationCenter];
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = @{};
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
I also tried this from your documentation use like that and the app never starts only black screen is shown.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.moduleName = @"main";
[WonderPush setClientId:@"---" secret:@"----"];
[WonderPush setupDelegateForApplication:application];
[WonderPush setupDelegateForUserNotificationCenter];
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = @{};
return YES;
}
WonderPush.setupDelegateForApplication: replaces the AppDelegate with our own instance that forwards every call to the previously registered AppDelegate, however, as you outline in your issue this does change the actual type of the AppDelegate instance.
Our documentation for this call outlines a solution: remove the call to WonderPush.setupDelegateForApplication: and replace it with manually forwarding the necessary methods described in the documentation. You have a sample code at the end of the section. https://docs.wonderpush.com/docs/ios-sdk#setupdelegateforapplication
hey @JBlazej, as I can see you are using wonderpush in an eas managed project, can you guide me how did you managed to add WonderPushNotificationServiceExtension with plugin, if possible can you share your config plugin file?
Hi team,
After upgrading to a new version of React Native (expo), the app won't start.
Got fatal error here
I found a problem with [WonderPush setupDelegateForApplication:application]; when I commented that this app works normally.
I also tried this from your documentation use like that and the app never starts only black screen is shown.
I use the latest version of the SDK
ios
and still use newArchEnabled: false but gonna need to upgrade very soon.
The text was updated successfully, but these errors were encountered: