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/FIRMessagingContextManagerService.m | |
parent | 3bba0ba042832273e623cb78b988060d976743f4 (diff) |
add macro to remove deprecated warning (#1295)
Diffstat (limited to 'Firebase/Messaging/FIRMessagingContextManagerService.m')
-rw-r--r-- | Firebase/Messaging/FIRMessagingContextManagerService.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Firebase/Messaging/FIRMessagingContextManagerService.m b/Firebase/Messaging/FIRMessagingContextManagerService.m index 65f64ad..c7be606 100644 --- a/Firebase/Messaging/FIRMessagingContextManagerService.m +++ b/Firebase/Messaging/FIRMessagingContextManagerService.m @@ -129,7 +129,10 @@ typedef NS_ENUM(NSUInteger, FIRMessagingContextManagerMessageType) { + (void)scheduleLocalNotificationForMessage:(NSDictionary *)message atDate:(NSDate *)date { NSDictionary *apsDictionary = message; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" UILocalNotification *notification = [[UILocalNotification alloc] init]; +#pragma clang diagnostic pop // A great way to understand timezones and UILocalNotifications // http://stackoverflow.com/questions/18424569/understanding-uilocalnotification-timezone |