mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Move VFS Activation at earlier stage in service notification
This commit is contained in:
parent
c90658d1ac
commit
82cb8660d7
1 changed files with 4 additions and 4 deletions
|
|
@ -56,6 +56,10 @@ class NotificationService: UNNotificationServiceExtension {
|
|||
bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent)
|
||||
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 {
|
||||
createCore()
|
||||
NotificationService.log.message(message: "received push payload : \(bestAttemptContent.userInfo.debugDescription)")
|
||||
|
|
@ -183,10 +187,6 @@ class NotificationService: UNNotificationServiceExtension {
|
|||
func createCore() {
|
||||
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: "")
|
||||
|
||||
if (NotificationService.log == nil) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue