diff options
author | chliangGoogle <chliang@google.com> | 2018-01-24 11:57:27 -0800 |
---|---|---|
committer | chliangGoogle <chliang@google.com> | 2018-01-24 11:57:27 -0800 |
commit | 44a2bc0db04fe0c695949d2be7661789f0fcb7c8 (patch) | |
tree | 1c52cd6b333b1f3d270071cd307340397e216b3d /Firebase/Messaging/Public | |
parent | 7b9a5601d7d162b14935299e2bf653488f0a9f2f (diff) |
Adding enable/disable property to FCM token auto Initialization
Diffstat (limited to 'Firebase/Messaging/Public')
-rw-r--r-- | Firebase/Messaging/Public/FIRMessaging.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Firebase/Messaging/Public/FIRMessaging.h b/Firebase/Messaging/Public/FIRMessaging.h index 7cd7b19..33dd596 100644 --- a/Firebase/Messaging/Public/FIRMessaging.h +++ b/Firebase/Messaging/Public/FIRMessaging.h @@ -289,7 +289,6 @@ NS_SWIFT_NAME(Messaging) */ @property(nonatomic, weak, nullable) id<FIRMessagingDelegate> delegate; - /** * Delegate to handle remote data messages received via FCM for devices running iOS 10 or above. */ @@ -354,6 +353,20 @@ NS_SWIFT_NAME(Messaging) #pragma mark - FCM Tokens /** + * Is Firebase Messaging token auto generation enabled? If this flag is disabled, + * Firebase Messaging will not generate token automatically for message delivery. + * + * This setting is persisted, and is applied on future + * invocations of your application. Once explicitly set, it overrides any + * settings in your Info.plist. + * + * By default, FCM automatic initialization is enabled. If you need to change the + * default (for example, because you want to prompt the user before getting token) + * set FirebaseMessagingAutoInitEnabled to false in your application's Info.plist. + */ +@property(nonatomic, assign, getter=isAutoInitEnabled) BOOL autoInitEnabled; + +/** * The FCM token is used to identify this device so that FCM can send notifications to it. * It is associated with your APNS token when the APNS token is supplied, so that sending * messages to the FCM token will be delivered over APNS. |