Fixed push notif issue

This commit is contained in:
Sylvain Berfini 2021-01-14 13:37:55 +01:00
parent 880bc7a409
commit dfb499d073
3 changed files with 4 additions and 0 deletions

View file

@ -163,6 +163,8 @@ public abstract class AssistantActivity extends LinphoneGenericActivity
LinphoneContext.instance().getNotificationManager().startForeground();
}
}
LinphonePreferences.instance()
.setPushNotificationEnabled(!isGenericAccount || useLinphoneDefaultValues);
if (proxyConfig == null) {
Log.e("[Assistant] Account creator couldn't create proxy config");

View file

@ -15,6 +15,7 @@
<entry name="nat_policy_ref" overwrite="true"></entry>
<entry name="realm" overwrite="true"></entry>
<entry name="conference_factory_uri" overwrite="true"></entry>
<entry name="push_notification_allowed" overwrite="true">0</entry>
</section>
<section name="nat_policy_default_values">
<entry name="stun_server" overwrite="true"></entry>

View file

@ -15,6 +15,7 @@
<entry name="nat_policy_ref" overwrite="true">nat_policy_default_values</entry>
<entry name="realm" overwrite="true">sip.linphone.org</entry>
<entry name="conference_factory_uri" overwrite="true">sip:conference-factory@sip.linphone.org</entry>
<entry name="push_notification_allowed" overwrite="true">1</entry>
</section>
<section name="nat_policy_default_values">
<entry name="stun_server" overwrite="true">stun.linphone.org</entry>