[ios] Added push notification processing ability.

This commit is contained in:
Ilya Grechuhin 2015-07-31 16:56:23 +03:00 committed by Alex Zolotarev
parent 1b99ee9824
commit 32244da39d
2 changed files with 3 additions and 1 deletions

View file

@ -155,9 +155,10 @@ void InitLocalizedStrings()
[Alohalytics logEvent:kPushDeviceTokenLogEvent withValue:currentInstallation.deviceToken];
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
{
[PFPush handlePush:userInfo];
completionHandler(UIBackgroundFetchResultNoData);
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

View file

@ -96,6 +96,7 @@
<string>MainWindow-iPad</string>
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
<string>fetch</string>
</array>
<key>UIFileSharingEnabled</key>