Using new PushService added in SDK
This commit is contained in:
parent
4e396e990d
commit
32f4307674
2 changed files with 9 additions and 1 deletions
|
@ -59,6 +59,7 @@
|
||||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA" />
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_CAMERA" />
|
||||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
|
||||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_PHONE_CALL" />
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_PHONE_CALL" />
|
||||||
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:name=".LinphoneApplication"
|
android:name=".LinphoneApplication"
|
||||||
|
@ -178,6 +179,13 @@
|
||||||
android:stopWithTask="false"
|
android:stopWithTask="false"
|
||||||
android:label="@string/app_name" />
|
android:label="@string/app_name" />
|
||||||
|
|
||||||
|
<service
|
||||||
|
android:name="org.linphone.core.tools.service.PushService"
|
||||||
|
android:exported="false"
|
||||||
|
android:foregroundServiceType="dataSync"
|
||||||
|
android:stopWithTask="false"
|
||||||
|
android:label="@string/app_name" />
|
||||||
|
|
||||||
<service android:name="org.linphone.core.tools.firebase.FirebaseMessaging"
|
<service android:name="org.linphone.core.tools.firebase.FirebaseMessaging"
|
||||||
android:enabled="${firebaseServiceEnabled}"
|
android:enabled="${firebaseServiceEnabled}"
|
||||||
android:exported="false">
|
android:exported="false">
|
||||||
|
|
|
@ -84,7 +84,7 @@ class NotificationsManager(private val context: Context) {
|
||||||
const val INTENT_REMOTE_ADDRESS = "REMOTE_ADDRESS"
|
const val INTENT_REMOTE_ADDRESS = "REMOTE_ADDRESS"
|
||||||
|
|
||||||
private const val SERVICE_NOTIF_ID = 1
|
private const val SERVICE_NOTIF_ID = 1
|
||||||
private const val MISSED_CALLS_NOTIF_ID = 2
|
private const val MISSED_CALLS_NOTIF_ID = 10
|
||||||
|
|
||||||
const val CHAT_TAG = "Chat"
|
const val CHAT_TAG = "Chat"
|
||||||
private const val MISSED_CALL_TAG = "Missed call"
|
private const val MISSED_CALL_TAG = "Missed call"
|
||||||
|
|
Loading…
Reference in a new issue