We finally manage to solve it. It was a problem because of using 'SceneDelegate' (for multiple scenes support) and iOS15 'prewarming' new feature.
Solved by transferring the RTCBridge protocol from AppDelegate -'didFinishWithLaunchOptions' to SceneDelegate - 'willConnectToSession'.
Post
Replies
Boosts
Views
Activity
We finally manage to solve it. It was a problem because of using 'SceneDelegate' (for multiple scenes support) and iOS15 'prewarming' new feature.
Solved by transferring the RTCBridge protocol from AppDelegate -'didFinishWithLaunchOptions' to SceneDelegate - 'willConnectToSession'.
We finally manage to solve it. It was a problem because of using 'SceneDelegate' (for multiple scenes support) and iOS15 'prewarming' new feature. Solved by transferring the RTCBridge protocol from AppDelegate -'didFinishWithLaunchOptions' to SceneDelegate - 'willConnectToSession'.
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 ?
We also using 'react-native-default-preference' package in order to pass some data from 'react native' code to 'objC' native code. Is it possible for this to be related with this bug?
@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;
}
We are using react native with Scenes on iOS in order for our app to support CarPlay.
This seems to be the issue for us. Something in CarpPlay implementation.
We have the same problem and we use Scenes to our react-native project in order to implement CarPlay for iOS devices.
Could this be related to this issue?
Hello everyone.
I have a similar issue in an iOS react-native app after iOS 15 upgrade but with not a crash.
If someone opens the app after ~1 hour from the last time he/she opened it, the app skips the SplashScreen and after that nothing renders correctly. The positioning and order of components are wrong.
This happens only the first time after ~1hour of app being closed.