forked from Ivasoft/mattermost-mobile
[Gekidou] iOS - Fetch and store data on push notification receipt
This commit is contained in:
@@ -73,8 +73,12 @@ class NotificationService: UNNotificationServiceExtension {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Network.default.fetchAndStoreDataForPushNotification(bestAttemptContent, withContentHandler: contentHandler)
|
||||
|
||||
if (MattermostBucket.init().getPreference("ApplicationIsForeground") as? String != "true") {
|
||||
Network.default.fetchAndStoreDataForPushNotification(bestAttemptContent, withContentHandler: contentHandler)
|
||||
} else if let contentHandler = contentHandler {
|
||||
contentHandler(bestAttemptContent)
|
||||
}
|
||||
}
|
||||
|
||||
override func serviceExtensionTimeWillExpire() {
|
||||
|
||||
Reference in New Issue
Block a user