Skip to content

Commit 415dba4

Browse files
authored
fix: undelivered background data message ios (invertase#4144)
A temporary fix until a better solution is implemented.
1 parent 525dcc2 commit 415dba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/messaging/ios/RNFBMessaging/RNFBMessaging+AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(N
119119
// TODO investigate later - RN bridge gets invalidated at start when in background and a new bridge created - losing all events
120120
// TODO so we just delay sending the event for a few seconds as a workaround
121121
// TODO most likely Remote Debugging causing bridge to be invalidated
122-
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t) (2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
122+
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t) (8 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
123123
[[RNFBRCTEventEmitter shared] sendEventWithName:@"messaging_message_received_background" body:[RNFBMessagingSerializer remoteMessageUserInfoToDict:userInfo]];
124124
});
125125
} else {

0 commit comments

Comments
 (0)