diff options
author | Riz <rsattar@gmail.com> | 2017-09-20 17:03:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-20 17:03:16 -0700 |
commit | b52f30c083c665bb20b8a79b5bd3963026f827c5 (patch) | |
tree | d42952f418373a31e0a90b817c1e7f6094c84064 /Firebase/Messaging/FIRMessaging+FIRApp.m | |
parent | 1c99f8c647b468bd12036bd2d44a2098f96a3b67 (diff) |
Clarify FCM SDK swizzling notice (#291)
The previous message was worded in a way as to imply that the FIRAppDelegateProxyEnabled key **should** be set to NO, disabling swizzling. This clarifies that message, indicating that this is for developers who would prefer to manually integrate the SDK.
Diffstat (limited to 'Firebase/Messaging/FIRMessaging+FIRApp.m')
-rw-r--r-- | Firebase/Messaging/FIRMessaging+FIRApp.m | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Firebase/Messaging/FIRMessaging+FIRApp.m b/Firebase/Messaging/FIRMessaging+FIRApp.m index 50078bf..30f96af 100644 --- a/Firebase/Messaging/FIRMessaging+FIRApp.m +++ b/Firebase/Messaging/FIRMessaging+FIRApp.m @@ -75,11 +75,16 @@ // Swizzle remote-notification-related methods (app delegate and UNUserNotificationCenter) if ([FIRMessagingRemoteNotificationsProxy canSwizzleMethods]) { + NSString *docsURLString = @"https://firebase.google.com/docs/cloud-messaging/ios/client" + @"#method_swizzling_in_firebase_messaging"; FIRMessagingLoggerNotice(kFIRMessagingMessageCodeFIRApp000, @"FIRMessaging Remote Notifications proxy enabled, will swizzle " - @"remote notification receiver handlers. Add \"%@\" to your " - @"Info.plist and set it to NO", - kFIRMessagingRemoteNotificationsProxyEnabledInfoPlistKey); + @"remote notification receiver handlers. If you'd prefer to manually " + @"integrate Firebase Messaging, add \"%@\" to your Info.plist, " + @"and set it to NO. Follow the instructions at:\n%@\nto ensure " + @"proper integration.", + kFIRMessagingRemoteNotificationsProxyEnabledInfoPlistKey, + docsURLString); [FIRMessagingRemoteNotificationsProxy swizzleMethods]; } } |