diff options
author | Chen Liang <chliang@google.com> | 2018-05-22 10:51:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-22 10:51:08 -0700 |
commit | c6d5b68b086b595f91e8a586e98b8a70b2b118aa (patch) | |
tree | 35d86ac63f169b1c70f4469a68c9abe0d39a0bfc /Firebase/Messaging/FIRMessagingReceiver.m | |
parent | 3bba0ba042832273e623cb78b988060d976743f4 (diff) |
add macro to remove deprecated warning (#1295)
Diffstat (limited to 'Firebase/Messaging/FIRMessagingReceiver.m')
-rw-r--r-- | Firebase/Messaging/FIRMessagingReceiver.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Firebase/Messaging/FIRMessagingReceiver.m b/Firebase/Messaging/FIRMessagingReceiver.m index 7a99c92..981dfb1 100644 --- a/Firebase/Messaging/FIRMessagingReceiver.m +++ b/Firebase/Messaging/FIRMessagingReceiver.m @@ -120,9 +120,11 @@ static int downstreamMessageID = 0; } else if ([appDelegate respondsToSelector:oldNotificationSelector]) { // Try the old remote notification callback +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" [appDelegate application: [UIApplication sharedApplication] didReceiveRemoteNotification:message]; - +#pragma clang diagnostic pop } else { FIRMessagingLoggerError(kFIRMessagingMessageCodeReceiver005, @"None of the remote notification callbacks implemented by " |