diff options
author | Ryan Wilson <wilsonryan@google.com> | 2018-05-14 10:02:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 10:02:25 -0700 |
commit | 08f447cd3fffae80748239daada493fcc19c111f (patch) | |
tree | 52049deb6adda8eb87c07d01264bdc2e0be26ac5 /Firebase/Messaging/FIRMessaging+FIRApp.m | |
parent | 281d145dc93d310d1dc21fdff61e004faba3b057 (diff) |
Add global data collection switch. (#1219)
* Addition of global data collection switch.
* Added Messaging conformance to data switch.
Also formatted code.
* Move data collection flag internal until all SDKs conform to it.
* Formatting in response to code review.
Diffstat (limited to 'Firebase/Messaging/FIRMessaging+FIRApp.m')
-rw-r--r-- | Firebase/Messaging/FIRMessaging+FIRApp.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Firebase/Messaging/FIRMessaging+FIRApp.m b/Firebase/Messaging/FIRMessaging+FIRApp.m index 58ae3af..d48a3b4 100644 --- a/Firebase/Messaging/FIRMessaging+FIRApp.m +++ b/Firebase/Messaging/FIRMessaging+FIRApp.m @@ -72,6 +72,7 @@ } self.fcmSenderID = [options.GCMSenderID copy]; + self.globalAutomaticDataCollectionEnabled = [app isAutomaticDataCollectionEnabled]; // Swizzle remote-notification-related methods (app delegate and UNUserNotificationCenter) if ([FIRMessagingRemoteNotificationsProxy canSwizzleMethods]) { |