We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a006d1 commit bf1f323Copy full SHA for bf1f323
1 file changed
lib/bootstrap.dart
@@ -237,7 +237,10 @@ Future<void> _initFirebaseMessaging() async {
237
final appPush = AppRemotePush.fromFCM(message);
238
RemotePushBroker.handleOpenedPush(appPush);
239
});
240
- final initialMessage = await FirebaseMessaging.instance.getInitialMessage();
+ final initialMessage = await FirebaseMessaging.instance.getInitialMessage().timeout(
241
+ const Duration(seconds: 5),
242
+ onTimeout: () => null,
243
+ );
244
if (initialMessage != null) {
245
logger.info('initialMessage: ${initialMessage.toMap()}');
246
final appPush = AppRemotePush.fromFCM(initialMessage);
0 commit comments