-
Notifications
You must be signed in to change notification settings - Fork 336
Conversation
Added as AppEventsLogger.setPushNotifications(deviceToken: Data!)
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks great, except for the push notifications device token.
Can we split this into a separate PR and add the suggested fixes?
Would gladly merge it after it's done.
Sets a device token to register the current application installation for push notifications. | ||
- parameter deviceToken: Device token data. | ||
*/ | ||
public static func setPushNotifications(deviceToken: Data!) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's convert this into a static var, like this:
public static var pushNotificaitonsDeviceToken: Data? {
didSet {
FBSDKAppEvents.setPushNotificationsDeviceToken(pushNotificaitonsDeviceToken)
}
}
Also, if you could split this into a separate PR, would help improve visibility.
@@ -141,6 +141,18 @@ public class AppEventsLogger { | |||
} | |||
|
|||
//-------------------------------------- | |||
// MARK: - Push Notification |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Push Notifications
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Merging as soon as Travis reports success.
Great thanks ! |
No description provided.