Hi Sylvain,

I tested by removing that method from LinphoneService.java, but calls still
are not received after removing the app from 'Recent Apps' list. I have
tested this on Android 4.4.2 and 5.1.1 and am using my own sip account, not
sip.linphone.org account. Please advise further how to resolve this.

Nabeel

On 18 April 2016 at 10:23, Sylvain Berfini <[email protected]>
wrote:

> 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 Communications
>
> Le 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 
> [email protected]https://lists.nongnu.org/mailman/listinfo/linphone-users
>
>
>
> _______________________________________________
> Linphone-users mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/linphone-users
>
>
_______________________________________________
Linphone-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/linphone-users

Reply via email to