forked from organicmaps/organicmaps
[ios] Added push notification processing ability.
This commit is contained in:
parent
1b99ee9824
commit
32244da39d
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -96,6 +96,7 @@
|
|||
<string>MainWindow-iPad</string>
|
||||
<key>UIBackgroundModes</key>
|
||||
<array>
|
||||
<string>remote-notification</string>
|
||||
<string>fetch</string>
|
||||
</array>
|
||||
<key>UIFileSharingEnabled</key>
|
||||
|
|
Loading…
Add table
Reference in a new issue