Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

Add AppEventsLogger.pushNotificationsDeviceToken #71

Merged
merged 3 commits into from
Oct 5, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Sources/Core/AppEvents/AppEventsLogger.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,19 @@ public class AppEventsLogger {
log(event, accessToken: accessToken)
}

//--------------------------------------
// MARK: - Push Notifications
//--------------------------------------

/**
Sets a device token to register the current application installation for push notifications.
*/
public static var pushNotificationsDeviceToken: Data? {
didSet{
FBSDKAppEvents.setPushNotificationsDeviceToken(pushNotificationsDeviceToken)
}
}

//--------------------------------------
// MARK: - Flush
//--------------------------------------
Expand Down