|
From: | mohammad olfat miri |
Subject: | Re: [Linphone-developers] problem with android background mode |
Date: | Mon, 5 Sep 2016 00:32:45 -0700 |
@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);
}
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 CommunicationsLe 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 recentbutton, see image bellow ). linphone service stop working and incoming calls are not receiving anymore. whats wrong here ?
--![]()
Mohammad OlfatMiriM.S. Student , Computer NetworksIslamic 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
[Prev in Thread] | Current Thread | [Next in Thread] |