Skip to content

Commit

Permalink
fix watch os
Browse files Browse the repository at this point in the history
  • Loading branch information
dplewis committed Nov 14, 2024
1 parent a2b1d2c commit 7b83fa2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) {
PFPush.handle(userInfo)
if application.applicationState == UIApplication.State.inactive {
PFAnalytics.trackAppOpenedWithRemoteNotificationPayload(userInfo)
PFAnalytics.trackAppOpenedWithRemoteNotificationPayload(inBackground: userInfo)
}
}

Expand All @@ -115,7 +115,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
///////////////////////////////////////////////////////////
// func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject], fetchCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void) {
// if application.applicationState == UIApplicationState.Inactive {
// PFAnalytics.trackAppOpenedWithRemoteNotificationPayload(userInfo)
// PFAnalytics.trackAppOpenedWithRemoteNotificationPayload(inBackground: userInfo)
// }
// }
}

0 comments on commit 7b83fa2

Please sign in to comment.