|
From: | Nabeel |
Subject: | Re: [Linphone-users] LinphoneService stops after closing from Recent Apps list |
Date: | Mon, 18 Apr 2016 11:42:22 +0100 |
Hi Nabeel,
Yes LinphoneService is killed but you should still be able to receive call via push notifications (if you are using a sip.linphone.org account).
Anyway, if you don't want the LinphoneService to be killed by the task manager, edit the LinphoneService.java file and remove the following overriden method:
@Override
public void onTaskRemoved(Intent rootIntent) {
if (getResources().getBoolean(R.bool.kill_service_with_task_manager)) {
Log.d("Task removed, stop service");
LinphoneManager.getLc().setNetworkReachable(false);
stopSelf();
}
super.onTaskRemoved(rootIntent);
}Cheers.
Sylvain Berfini Software Engineer @ Belledonne CommunicationsLe 18/04/2016 à 11:05, Nabeel a écrit :
Hi,
I am using Linphone for Android. If the app is closed / 'swiped away' from the phone's Recent Apps list, the service gets stopped and Linphone can no longer receive a call. I would like to change this so that the service stays alive and can receive calls even after the app is closed from Recent Apps list. Please let me know how this can be achieved?
Nabeel
_______________________________________________ Linphone-users mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/linphone-users
_______________________________________________
Linphone-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-users
[Prev in Thread] | Current Thread | [Next in Thread] |