Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar {
if ([registrar respondsToSelector:@selector(addSceneDelegate:)]) {
[registrar performSelector:@selector(addSceneDelegate:) withObject:instance];
}
// UIScene registers plugins after didFinishLaunching / scene:willConnect.
// If a scene is already connected those callbacks were missed, so run
// setup now. setupNotificationHandling is idempotent if a callback still
// arrives later. iOS re-delivers the APNs token when we register again.
if ([UIApplication sharedApplication].connectedScenes.count > 0) {
instance->_sceneDidConnect = YES;
[instance setupNotificationHandlingWithRemoteNotification:nil];
}
}
#endif
}
Expand Down
Loading