Skip to content

Commit

Permalink
fix ios and osx starters
Browse files Browse the repository at this point in the history
  • Loading branch information
dplewis committed Nov 7, 2024
1 parent 483b8f6 commit dafaeaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
//
// ****************************************************************************

PFAnalytics.trackAppOpened(launchOptions: nil)
PFAnalytics.trackAppOpenedWithLaunchOptions(inBackground: nil)
}

func application(_ application: NSApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
Expand All @@ -75,6 +75,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
// Uncomment these lines to track Push Notifications open rate in Analytics.
//
// func application(application: NSApplication, didReceiveRemoteNotification userInfo: [String : AnyObject]) {
// PFAnalytics.trackAppOpened(withRemoteNotificationPayload: userInfo)
// PFAnalytics.trackAppOpenedWithRemoteNotificationPayload(inBackground: userInfo)
// }
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
noPushPayload = options[UIApplication.LaunchOptionsKey.remoteNotification] == nil
}
if oldPushHandlerOnly || noPushPayload {
PFAnalytics.trackAppOpened(launchOptions: launchOptions)
PFAnalytics.trackAppOpenedWithLaunchOptions(inBackground: launchOptions)
}
}

Expand Down Expand Up @@ -111,7 +111,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) {
PFPush.handle(userInfo)
if application.applicationState == UIApplication.State.inactive {
PFAnalytics.trackAppOpened(withRemoteNotificationPayload: userInfo)
PFAnalytics.trackAppOpenedWithRemoteNotificationPayload(inBackground: userInfo)
}
}

Expand Down

0 comments on commit dafaeaf

Please sign in to comment.