Skip to content

Commit

Permalink
fix: removed starting service manually in notification
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremynorman89 committed Sep 5, 2024
1 parent 9d6d1e4 commit 8072e1e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ android {
defaultConfig {
applicationId = "org.openvoipalliance.androidplatformintegration"
minSdk = 26
targetSdk = 33
targetSdk = 34
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down
2 changes: 1 addition & 1 deletion pil/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies {
androidTestImplementation("org.mockito:mockito-android:+")
androidTestImplementation("androidx.test.ext:junit:1.1.2")
androidTestImplementation("androidx.test.espresso:espresso-core:3.3.0")
embed("org.linphone.minimal:linphone-sdk-android:5.3.53")
embed("org.linphone.minimal:linphone-sdk-android:5.3.80")
}

val sourcesJar by tasks.registering(Jar::class) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ internal class NotificationButtonReceiver : BroadcastReceiver() {

pil.notifications.dismissStale()

// We need to start the VoIP service here, or we don't have access to the microphone.
// See: https://developer.android.com/guide/components/foreground-services#bg-access-restriction-exemptions
context.startService(Intent(context, VoIPService::class.java))

try {
val action = valueOf(intent.action ?: "")

Expand Down

0 comments on commit 8072e1e

Please sign in to comment.