Post

Replies

Boosts

Views

Activity

Reply to React Native app with CarPlay support, bug on launch sometimes after iOS 15
@JavierRefuerzo thanks for the response. Yes I have some code in "didFinishLaunchingWithOptions": - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { if ([FIRApp defaultApp] == nil) { [FIRApp configure]; } #ifdef FB_SONARKIT_ENABLED InitializeFlipper(application); #endif [GMSServices provideAPIKey:@"..."]; [Intercom setApiKey:@"..." forAppId:@"..."]; [Intercom registerUnidentifiedUser]; [Stripe setDefaultPublishableKey:@"..."]; // Define UNUserNotificationCenter UNUserNotificationCenter *notifcenter = [UNUserNotificationCenter currentNotificationCenter]; [notifcenter setDelegate: self]; [notifcenter requestAuthorizationWithOptions:(UNAuthorizationOptionBadge | UNAuthorizationOptionAlert |UNAuthorizationOptionSound) completionHandler:^(BOOL granted, NSError * _Nullable error) { // check this with break point NSLog(@"Succes %d", granted); }]; [[UIApplication sharedApplication] registerForRemoteNotifications]; RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"..." initialProperties:nil]; RNBridgeInstanceHolder *instance = [RNBridgeInstanceHolder sharedManager]; instance.bridge = bridge; instance.rootView = rootView; return YES; }
Jan ’22
Reply to In iOS 15, when the app is restarted, it immediately crashes.
Well the problem for us it seems to be that we are using "Scenes" in our app in order to implement the "PointOfInterest" template for the CarPlay. If we exclude it the app launches just fine. But using "Scenes", after ~30min (app closed) the app launches but nothing renders correctly in terms of positioning. In iOS 15 started a prewarming of apps in order to launch faster (https://developer.apple.com/documentation/uikit/app_and_environment/responding_to_the_launch_of_your_app/about_the_app_launch_sequence?language=objc#3894431) and we think this triggers these bugs. Any idea on this ?
Jan ’22