fix: more fixes to google sheeeat
This commit is contained in:
parent
518a43082e
commit
288b46647c
3 changed files with 5 additions and 3 deletions
|
|
@ -26,7 +26,7 @@
|
|||
android:name=".LinphoneVoipService"
|
||||
android:enabled="true"
|
||||
android:exported="false"
|
||||
android:foregroundServiceType="phoneCall"
|
||||
android:foregroundServiceType="phoneCall|microphone"
|
||||
android:stopWithTask="false" />
|
||||
</application>
|
||||
</manifest>
|
||||
|
|
|
|||
|
|
@ -205,6 +205,8 @@ class LinphoneBridge(
|
|||
core.config.setInt("net", "ipv6", 0)
|
||||
core.config.sync()
|
||||
|
||||
core.setKeepAlivePeriod(25)
|
||||
|
||||
// Enable video
|
||||
core.isVideoCaptureEnabled = true
|
||||
core.isVideoDisplayEnabled = true
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class LinphoneVoipService : Service() {
|
|||
|
||||
// Android 14+ requires explicit service type in startForeground
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||
startForeground(100, notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL)
|
||||
startForeground(100, notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL or ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE)
|
||||
} else {
|
||||
startForeground(100, notification)
|
||||
}
|
||||
|
|
@ -65,7 +65,7 @@ class LinphoneVoipService : Service() {
|
|||
return NotificationCompat.Builder(this, channelId)
|
||||
.setContentTitle("Voice Call")
|
||||
.setContentText("Call in progress")
|
||||
.setSmallIcon(android.R.drawable.ic_menu_call) // Replace with your app's call icon
|
||||
.setSmallIcon(android.R.drawable.ic_menu_call)
|
||||
.setOngoing(true)
|
||||
.setCategory(NotificationCompat.CATEGORY_CALL)
|
||||
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue