File tree 1 file changed +6
-1
lines changed
packages/core/application
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ export class iOSApplication extends ApplicationCommon implements IiOSApplication
77
77
private _window : UIWindow ;
78
78
private _notificationObservers : NotificationObserver [ ] = [ ] ;
79
79
private _rootView : View ;
80
+ private launchEventCalled = false ;
80
81
81
82
displayedOnce = false ;
82
83
displayedLinkTarget : CADisplayLinkTarget ;
@@ -314,6 +315,7 @@ export class iOSApplication extends ApplicationCommon implements IiOSApplication
314
315
}
315
316
316
317
private notifyAppStarted ( notification ?: NSNotification ) {
318
+ this . launchEventCalled = true ;
317
319
const root = this . notifyLaunch ( {
318
320
ios : notification ?. userInfo ?. objectForKey ( 'UIApplicationLaunchOptionsLocalNotificationKey' ) ?? null ,
319
321
} ) ;
@@ -369,11 +371,14 @@ export class iOSApplication extends ApplicationCommon implements IiOSApplication
369
371
// TODO: Expose Window module so that it can we styled from XML & CSS
370
372
this . _window . backgroundColor = Utils . ios . MajorVersion <= 12 || ! UIColor . systemBackgroundColor ? UIColor . whiteColor : UIColor . systemBackgroundColor ;
371
373
372
- this . notifyAppStarted ( notification ) ;
374
+ this . launchEventCalled = false ;
373
375
}
374
376
375
377
@profile
376
378
private didBecomeActive ( notification : NSNotification ) {
379
+ if ( ! this . launchEventCalled ) {
380
+ this . notifyAppStarted ( notification ) ;
381
+ }
377
382
const additionalData = {
378
383
ios : UIApplication . sharedApplication ,
379
384
} ;
You can’t perform that action at this time.
0 commit comments