GitLiveApp / firebase-kotlin-sdk

A Kotlin-first SDK for Firebase
https://gitliveapp.github.io/firebase-kotlin-sdk/
Apache License 2.0
1.13k stars 155 forks source link

Not working with targetApi 31 and above #341

Closed pauminku closed 1 year ago

pauminku commented 1 year ago

When using this library with targetApi 31 and above, I'm getting this error: java.lang.IllegalArgumentException: xxx: 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. Looking the stack trace it seems that this comes from: com.firebase.ui.auth.ui.email.CheckEmailHandler.fetchCredential(CheckEmailHandler.java:29) This is a known issue with Firebase sdk, it's easily fixed by updating the sdk.

This is an important blocker because google play will all start accepting app updates only for apps targeting api 31 or above by November 22.

pauminku commented 1 year ago

Sorry, the problem was not related with this library. If someone else is having the same issue, I solved it upgrading the auth.ui library: implementation("com.firebaseui:firebase-ui-auth:8.0.2")