LinphoneManager.m: reconfigure push notifications in case of remote provisioning

This commit is contained in:
Gautier Pelloux-Prayer 2016-02-15 11:05:23 +01:00
parent 4cdce19c7f
commit b095cd2333

View file

@ -822,6 +822,14 @@ static void linphone_iphone_configuring_status_changed(LinphoneCore *lc, Linphon
- (void)configuringStateChangedNotificationHandler:(NSNotification *)notif {
_wasRemoteProvisioned = ((LinphoneConfiguringState)[[[notif userInfo] valueForKey:@"state"] integerValue] ==
LinphoneConfiguringSuccessful);
if (_wasRemoteProvisioned) {
LinphoneProxyConfig *cfg = linphone_core_get_default_proxy_config(LC);
if (cfg) {
linphone_proxy_config_edit(cfg);
[self configurePushTokenForProxyConfig:cfg];
linphone_proxy_config_done(cfg);
}
}
}
#pragma mark - Registration State Functions