forked from mirrors/linphone-iphone
Fix flexiApi push parameter for push token reception : need to adapt the pn-provider to the build (DEBUG or not)
This commit is contained in:
parent
69a878d245
commit
bd3b8d8731
1 changed files with 6 additions and 1 deletions
|
|
@ -314,7 +314,12 @@ class RegisterViewModel: ObservableObject {
|
|||
|
||||
let pushConfig = core.pushNotificationConfig
|
||||
if pushConfig != nil && self.accountManagerServices != nil {
|
||||
pushConfig!.provider = "apns.dev"
|
||||
#if DEBUG
|
||||
let pushEnvironment = ".dev"
|
||||
#else
|
||||
let pushEnvironment = ""
|
||||
#endif
|
||||
pushConfig!.provider = "apns\(pushEnvironment)"
|
||||
var formatedPnParam = pushConfig!.param
|
||||
formatedPnParam = formatedPnParam?.replacingOccurrences(of: "voip&remote", with: "remote")
|
||||
pushConfig!.param = formatedPnParam
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue