fix: more fixes to google sheeeat

This commit is contained in:
Andrew 2026-04-08 18:49:35 +07:00
parent 518a43082e
commit 288b46647c
3 changed files with 5 additions and 3 deletions

View file

@ -26,7 +26,7 @@
android:name=".LinphoneVoipService" android:name=".LinphoneVoipService"
android:enabled="true" android:enabled="true"
android:exported="false" android:exported="false"
android:foregroundServiceType="phoneCall" android:foregroundServiceType="phoneCall|microphone"
android:stopWithTask="false" /> android:stopWithTask="false" />
</application> </application>
</manifest> </manifest>

View file

@ -205,6 +205,8 @@ class LinphoneBridge(
core.config.setInt("net", "ipv6", 0) core.config.setInt("net", "ipv6", 0)
core.config.sync() core.config.sync()
core.setKeepAlivePeriod(25)
// Enable video // Enable video
core.isVideoCaptureEnabled = true core.isVideoCaptureEnabled = true
core.isVideoDisplayEnabled = true core.isVideoDisplayEnabled = true

View file

@ -29,7 +29,7 @@ class LinphoneVoipService : Service() {
// Android 14+ requires explicit service type in startForeground // Android 14+ requires explicit service type in startForeground
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) { 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 { } else {
startForeground(100, notification) startForeground(100, notification)
} }
@ -65,7 +65,7 @@ class LinphoneVoipService : Service() {
return NotificationCompat.Builder(this, channelId) return NotificationCompat.Builder(this, channelId)
.setContentTitle("Voice Call") .setContentTitle("Voice Call")
.setContentText("Call in progress") .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) .setOngoing(true)
.setCategory(NotificationCompat.CATEGORY_CALL) .setCategory(NotificationCompat.CATEGORY_CALL)
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC) .setVisibility(NotificationCompat.VISIBILITY_PUBLIC)