Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
linphone-iphone
Commits
82cb8660
Commit
82cb8660
authored
Jun 16, 2021
by
Christophe Deschamps
Browse files
Move VFS Activation at earlier stage in service notification
parent
c90658d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
msgNotificationService/NotificationService.swift
msgNotificationService/NotificationService.swift
+4
-4
No files found.
msgNotificationService/NotificationService.swift
View file @
82cb8660
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment