Commit 82cb8660 authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

Move VFS Activation at earlier stage in service notification

parent c90658d1
...@@ -56,6 +56,10 @@ class NotificationService: UNNotificationServiceExtension { ...@@ -56,6 +56,10 @@ class NotificationService: UNNotificationServiceExtension {
bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent) bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
NSLog("[msgNotificationService] start msgNotificationService extension") NSLog("[msgNotificationService] start msgNotificationService extension")
if (VFSUtil.vfsEnabled(groupName: APP_GROUP_ID) && !VFSUtil.activateVFS()) {
VFSUtil.oslog(log: "[VFS] Error unable to activate.", level: .error)
}
if let bestAttemptContent = bestAttemptContent { if let bestAttemptContent = bestAttemptContent {
createCore() createCore()
NotificationService.log.message(message: "received push payload : \(bestAttemptContent.userInfo.debugDescription)") NotificationService.log.message(message: "received push payload : \(bestAttemptContent.userInfo.debugDescription)")
...@@ -183,10 +187,6 @@ class NotificationService: UNNotificationServiceExtension { ...@@ -183,10 +187,6 @@ class NotificationService: UNNotificationServiceExtension {
func createCore() { func createCore() {
NSLog("[msgNotificationService] create core") NSLog("[msgNotificationService] create core")
if (VFSUtil.vfsEnabled(groupName: APP_GROUP_ID) && !VFSUtil.activateVFS()) {
VFSUtil.oslog(log: "[VFS] Error unable to activate.", level: .error)
}
let config = Config.newForSharedCore(appGroupId: APP_GROUP_ID, configFilename: "linphonerc", factoryConfigFilename: "") let config = Config.newForSharedCore(appGroupId: APP_GROUP_ID, configFilename: "linphonerc", factoryConfigFilename: "")
if (NotificationService.log == nil) { if (NotificationService.log == nil) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment