BirjuVachhani / locus-android

An Awesome Kotlin Location library to retrieve location merely in 3 lines of code
https://birju.dev/posts/retrieve-location-in-just-3-lines-android/
Apache License 2.0
358 stars 40 forks source link

Errors in locat Pending Intent #67

Closed Siddhartha9536 closed 2 years ago

Siddhartha9536 commented 2 years ago
java.lang.IllegalArgumentException: com.taskflo: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
    at android.app.PendingIntent.checkFlags(PendingIntent.java:375)
    at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:651)
    at android.app.PendingIntent.getBroadcast(PendingIntent.java:638)
    at com.birjuvachhani.locus.LocationBroadcastReceiver$Companion.getPendingIntent(LocationBroadcastReceiver.kt:41)
    at com.birjuvachhani.locus.LocationProvider$pendingIntent$2.invoke(LocationProvider.kt:40)
    at com.birjuvachhani.locus.LocationProvider$pendingIntent$2.invoke(LocationProvider.kt:37)
    at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
BirjuVachhani commented 2 years ago

@Siddhartha9536 I think has been fixed in the latest version of Locus. Which version are you using?

BirjuVachhani commented 2 years ago

Closing because of inactivity.