linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-users] LinphoneService stops after closing from Recent App


From: Sylvain Berfini
Subject: Re: [Linphone-users] LinphoneService stops after closing from Recent Apps list
Date: Mon, 18 Apr 2016 11:23:21 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0

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 list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]