Код: Выделить всё
const message = {
token,
apns: {
headers: {
'apns-priority': '10',
'apns-push-type': 'alert'
},
payload: {
aps: {
alert: {
title: 'The Cure',
body: 'Amazing album'
},
sound: 'default',
"content-available": 1
}
}
},
data: {
deep_link: 'inspireapp://account/rent/payment-methods',
title: 'The Cure',
body: 'Amazing album'
},
};
< /code>
А вот журнал от Xcode: < /p>
-[RNFBMessagingAppDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:] [Line 156] didReceiveRemoteNotification gcm.message_id was present {
aps = {
alert = {
body = "Amazing album";
title = "The Cure";
};
"content-available" = 1;
sound = default;
};
body = "Amazing album";
"deep_link" = "inspireapp://account/rent/payment-methods";
"gcm.message_id" = XXXXXX;
"google.c.a.e" = 1;
"google.c.fid" = XXXXXX;
"google.c.sender.id" = XXXX;
title = "The Cure";
}
-[RNFBMessagingAppDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:] [Line 192] didReceiveRemoteNotification sharedInstance.backgroundMessageHandlerSet = YES
-[RNFBMessagingAppDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:] [Line 202] didReceiveRemoteNotification without waiting for backgroundMessageHandlerSet to be set
Подробнее здесь: https://stackoverflow.com/questions/795 ... lick-issue