summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-10 12:52:02 +0300
committerGravatar Vitaly Takmazov2017-12-10 12:52:02 +0300
commitfe136b8c6b1e97fbc08f50265d41e1280c94afe3 (patch)
tree0bb221b9418f6c1cf7ca760975703e112529a40b /Juick
parent38d16e9d26b4f8653063ef2c572ccfc803ab165b (diff)
another push fix
Diffstat (limited to 'Juick')
-rw-r--r--Juick/AppDelegate.m9
-rw-r--r--Juick/Supporting Files/Juick-Info.plist2
2 files changed, 10 insertions, 1 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m
index e4056e6..43494cf 100644
--- a/Juick/AppDelegate.m
+++ b/Juick/AppDelegate.m
@@ -39,6 +39,15 @@
return YES;
}
+-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
+ [self parseNotificationPayload:userInfo];
+ if (application.applicationState == UIApplicationStateActive) {
+ UIStoryboard *main = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
+ [main instantiateInitialViewController];
+ }
+ completionHandler(UIBackgroundFetchResultNewData);
+}
+
- (void)registerForRemoteNotifications {
UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
center.delegate = self;
diff --git a/Juick/Supporting Files/Juick-Info.plist b/Juick/Supporting Files/Juick-Info.plist
index dcaee08..0b992da 100644
--- a/Juick/Supporting Files/Juick-Info.plist
+++ b/Juick/Supporting Files/Juick-Info.plist
@@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>1.0.35</string>
+ <string>1.0.36</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>