mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-31 10:19:23 +00:00
Disable remote push
This commit is contained in:
parent
6dfc870624
commit
e6e1087d85
1 changed files with 4 additions and 3 deletions
|
|
@ -27,9 +27,10 @@ class AppDelegate: NSObject, UIApplicationDelegate {
|
|||
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
|
||||
let tokenStr = deviceToken.map { String(format: "%02.2hhx", $0) }.joined()
|
||||
Log.info("Received remote push token : \(tokenStr)")
|
||||
CoreContext.shared.doOnCoreQueue { core in
|
||||
Log.info("Forwarding remote push token to core")
|
||||
core.didRegisterForRemotePushWithStringifiedToken(deviceTokenStr: tokenStr + ":remote")
|
||||
CoreContext.shared.doOnCoreQueue { core in,
|
||||
Log.warn("Push are disabled for this version, do not forward push token to the core")
|
||||
//Log.info("Forwarding remote push token to core")
|
||||
//core.didRegisterForRemotePushWithStringifiedToken(deviceTokenStr: tokenStr + ":remote")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue