Disable push notifications on non default domain accounts

This commit is contained in:
Sylvain Berfini 2019-11-19 14:40:44 +01:00
parent b9c6abdeb5
commit 4fd25bb1b0

View file

@ -145,6 +145,7 @@ public abstract class AssistantActivity extends LinphoneGenericActivity
} else {
// If this isn't a sip.linphone.org account, disable push notifications and enable
// service notification, otherwise incoming calls won't work (most probably)
proxyConfig.setPushNotificationAllowed(false);
Log.w(
"[Assistant] Unknown domain used, push probably won't work, enable service mode");
LinphonePreferences.instance().setServiceNotificationVisibility(true);