Updated video conf factory URI + updated push received logs + added new push received callback

This commit is contained in:
Sylvain Berfini 2022-08-30 15:49:12 +02:00
parent 5a0a210100
commit 0a0221c9b0
4 changed files with 7 additions and 3 deletions

View file

@ -15,7 +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="audio_video_conference_factory_uri" overwrite="true">sip:videoconference-factory2@sip.linphone.org</entry>
<entry name="audio_video_conference_factory_uri" overwrite="true">sip:videoconference-factory@sip.linphone.org</entry>
<entry name="push_notification_allowed" overwrite="true">1</entry>
<entry name="cpim_in_basic_chat_rooms_enabled" overwrite="true">1</entry>
<entry name="rtp_bundle" overwrite="true">1</entry>

View file

@ -148,6 +148,10 @@ class CoreContext(
}
}
override fun onPushNotificationReceived(core: Core, payload: String?) {
Log.i("[Context] Push notification received: $payload")
}
override fun onCallStateChanged(
core: Core,
call: Call,

View file

@ -504,7 +504,7 @@ class CorePreferences constructor(private val context: Context) {
get() = config.getString(
"app",
"default_audio_video_conference_factory_uri",
"sip:videoconference-factory2@sip.linphone.org"
"sip:videoconference-factory@sip.linphone.org"
)!!
val checkUpdateAvailableInterval: Int

View file

@ -28,6 +28,6 @@ import org.linphone.core.tools.Log
class CorePushReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
ensureCoreExists(context.applicationContext, true)
Log.i("[Push Receiver] Push notification received")
Log.i("[Push Notification] Push notification has been received in broadcast receiver")
}
}