Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into patch
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski committed Sep 13, 2017
2 parents fe617dc + ccdb53e commit 46e0256
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion AirshipKit/AirshipKit/common/UAPush.m
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,9 @@ - (void)updateAPNSRegistration {

- (void)notificationRegistrationFinishedWithOptions:(UANotificationOptions)options {
if (!self.deviceToken) {
[[UIApplication sharedApplication] registerForRemoteNotifications];
dispatch_async(dispatch_get_main_queue(), ^{
[[UIApplication sharedApplication] registerForRemoteNotifications];
});
};

self.userPromptedForNotifications = YES;
Expand Down

0 comments on commit 46e0256

Please sign in to comment.