mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Move register for notification from application did become active to application start.
This commit is contained in:
parent
5f6a799cf8
commit
d4da3651b1
1 changed files with 2 additions and 1 deletions
|
|
@ -74,7 +74,7 @@
|
|||
|
||||
- (void)applicationDidBecomeActive:(UIApplication *)application {
|
||||
LOGI(@"%@", NSStringFromSelector(_cmd));
|
||||
[self registerForNotifications];
|
||||
|
||||
if (startedInBackground) {
|
||||
startedInBackground = FALSE;
|
||||
[PhoneMainView.instance startUp];
|
||||
|
|
@ -309,6 +309,7 @@
|
|||
LinphoneManager *instance = [LinphoneManager instance];
|
||||
BOOL background_mode = [instance lpConfigBoolForKey:@"backgroundmode_preference"];
|
||||
BOOL start_at_boot = [instance lpConfigBoolForKey:@"start_at_boot_preference"];
|
||||
[self registerForNotifications];//register for notifications must be done ASAP to give a chance for first SIP register to be done we right token. Specially true in case of remote provisionning or re-install with new type of signing certificate, like debug to release.
|
||||
if (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_9_x_Max) {
|
||||
self.del = [[ProviderDelegate alloc] init];
|
||||
[LinphoneManager.instance setProviderDelegate:self.del];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue