linphone-developers
[Top][All Lists]
Advanced

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

Re: [Linphone-developers] problem with android background mode


From: mohammad olfat miri
Subject: Re: [Linphone-developers] problem with android background mode
Date: Mon, 5 Sep 2016 00:32:45 -0700

HI
thanks for your respond
i fixed my problem by commenting code below in LinphoneService,java

  @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
@Override
public void onTaskRemoved(Intent rootIntent) {
if (getResources().getBoolean(R.bool.kill_service_with_task_manager)) {
Log.d("Task removed, stop service");

// If push is enabled, don't unregister account, otherwise do unregister
if (LinphonePreferences.instance().isPushNotificationEnabled()) {
LinphoneManager.getLc().setNetworkReachable(false);
}
stopSelf();
}
super.onTaskRemoved(rootIntent);
}


On Mon, Sep 5, 2016 at 12:27 AM, Sylvain Berfini <address@hidden> wrote:

Hi Mohammad,

When you kill the app using the task killer, LinphoneService is indeed killed. However you should still be able to receive calls and messages via push notifications.

If push notifications are disabled, LinphoneService is not killed by the task killer.

If you want, send us logs from the application and we'll take a look to see if anything has gone wrong on your device.

Cheers.

Sylvain Berfini
Software Engineer @ Belledonne Communications
Le 04/09/2016 à 10:06, mohammad olfat miri a écrit :

Hi,

i enabled background mode in android and also i'm using TCP for connecting to my SIP server.
the problem is when a user use android "Close all app" feature ( usually pressing android  recent
button, see image bellow ). linphone service stop working and incoming calls are not receiving anymore. whats wrong here ?

Inline image 1 
--


Mohammad OlfatMiri
M.S. Student , Computer Networks
Islamic Azad University , Science and Research , Kermanshah , Iran ( iauksh.ac.ir)
Co Founder & Developer  at shagerdaneh.ir
Research & Development Manager at Taknet (Hesabgar Co.) taknet.ir


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers




--


Mohammad OlfatMiri
M.S. Student , Computer Networks
Islamic Azad University , Science and Research , Kermanshah , Iran ( iauksh.ac.ir)
Co Founder & Developer  at shagerdaneh.ir
Research & Development Manager at Taknet (Hesabgar Co.) taknet.ir

reply via email to

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