Updated video conf factory URI + updated push received logs + added new push received callback
This commit is contained in:
parent
5a0a210100
commit
0a0221c9b0
4 changed files with 7 additions and 3 deletions
|
@ -15,7 +15,7 @@
|
||||||
<entry name="nat_policy_ref" overwrite="true">nat_policy_default_values</entry>
|
<entry name="nat_policy_ref" overwrite="true">nat_policy_default_values</entry>
|
||||||
<entry name="realm" overwrite="true">sip.linphone.org</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="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="push_notification_allowed" overwrite="true">1</entry>
|
||||||
<entry name="cpim_in_basic_chat_rooms_enabled" overwrite="true">1</entry>
|
<entry name="cpim_in_basic_chat_rooms_enabled" overwrite="true">1</entry>
|
||||||
<entry name="rtp_bundle" overwrite="true">1</entry>
|
<entry name="rtp_bundle" overwrite="true">1</entry>
|
||||||
|
|
|
@ -148,6 +148,10 @@ class CoreContext(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onPushNotificationReceived(core: Core, payload: String?) {
|
||||||
|
Log.i("[Context] Push notification received: $payload")
|
||||||
|
}
|
||||||
|
|
||||||
override fun onCallStateChanged(
|
override fun onCallStateChanged(
|
||||||
core: Core,
|
core: Core,
|
||||||
call: Call,
|
call: Call,
|
||||||
|
|
|
@ -504,7 +504,7 @@ class CorePreferences constructor(private val context: Context) {
|
||||||
get() = config.getString(
|
get() = config.getString(
|
||||||
"app",
|
"app",
|
||||||
"default_audio_video_conference_factory_uri",
|
"default_audio_video_conference_factory_uri",
|
||||||
"sip:videoconference-factory2@sip.linphone.org"
|
"sip:videoconference-factory@sip.linphone.org"
|
||||||
)!!
|
)!!
|
||||||
|
|
||||||
val checkUpdateAvailableInterval: Int
|
val checkUpdateAvailableInterval: Int
|
||||||
|
|
|
@ -28,6 +28,6 @@ import org.linphone.core.tools.Log
|
||||||
class CorePushReceiver : BroadcastReceiver() {
|
class CorePushReceiver : BroadcastReceiver() {
|
||||||
override fun onReceive(context: Context, intent: Intent) {
|
override fun onReceive(context: Context, intent: Intent) {
|
||||||
ensureCoreExists(context.applicationContext, true)
|
ensureCoreExists(context.applicationContext, true)
|
||||||
Log.i("[Push Receiver] Push notification received")
|
Log.i("[Push Notification] Push notification has been received in broadcast receiver")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue