File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 44
44
NSString *const kFIRMessagingContextManagerSoundKey = kFIRMessagingContextManagerNotificationKeyPrefix @" sound" ;
45
45
NSString *const kFIRMessagingContextManagerContentAvailableKey =
46
46
kFIRMessagingContextManagerNotificationKeyPrefix @" content-available" ;
47
+ NSString *const kFIRMessagingAPNSPayloadKey = @" aps" ;
48
+
47
49
48
50
typedef NS_ENUM (NSUInteger , FIRMessagingContextManagerMessageType) {
49
51
FIRMessagingContextManagerMessageTypeNone,
@@ -187,6 +189,11 @@ + (NSDictionary *)parseDataFromMessage:(NSDictionary *)message {
187
189
continue ;
188
190
} else if ([keyString hasPrefix: kContextManagerPrefixKey ]) {
189
191
continue ;
192
+ } else if ([keyString isEqualToString: kFIRMessagingAPNSPayloadKey ]) {
193
+ // Local timezone message is scheduled with FCM payload. APNS payload with
194
+ // content_available should be ignored and not passed to the scheduled
195
+ // messages.
196
+ continue ;
190
197
}
191
198
}
192
199
data[[key copy ]] = message[key];
You can’t perform that action at this time.
0 commit comments