Skip to content

Commit 1a33549

Browse files
committed
Merge pull request #784 from ParadimeWeb/patch-1
Swift iOS StarterProject AppDelegate - noPushPayload variable is wrong
2 parents 012b9fa + 52b7115 commit 1a33549

File tree

1 file changed

+1
-1
lines changed
  • ParseStarterProject/iOS/ParseStarterProject-Swift/ParseStarterProject

1 file changed

+1
-1
lines changed

ParseStarterProject/iOS/ParseStarterProject-Swift/ParseStarterProject/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5656
let oldPushHandlerOnly = !self.respondsToSelector("application:didReceiveRemoteNotification:fetchCompletionHandler:")
5757
var noPushPayload = false;
5858
if let options = launchOptions {
59-
noPushPayload = options[UIApplicationLaunchOptionsRemoteNotificationKey] != nil;
59+
noPushPayload = options[UIApplicationLaunchOptionsRemoteNotificationKey] == nil;
6060
}
6161
if (preBackgroundPush || oldPushHandlerOnly || noPushPayload) {
6262
PFAnalytics.trackAppOpenedWithLaunchOptions(launchOptions)

0 commit comments

Comments
 (0)