RealtimeDatabase not working after updating SafetyNet to PlayIntegrity

362 views
Skip to first unread message

nadeem yousaf

unread,
Sep 19, 2022, 7:56:56 PM9/19/22
to Firebase Google Group
I am facing an issue regarding Firebase AppCheck for Android /App Integrity. Let me explain my exact problem. I have already implemented SafetyNet in firebase realtime database  in my android app and it was working fine .Now I have replaced SafetyNet with Play Integrity by using this App Check Play Integrity API. I have followed all steps as mentioned in documentation enabled App Integrity on my Playstore Console and registered Play Integrity on Firebase Realtime database.its working fine with debug token on debug build for both cases Enforced/UnEnforced App Check.On Released Signed Build its only works when i have not Enforced App Check on Firebase in this link App Check Enforced/UnEnforced but after Enforced App Check my Relatime database start throwing Error  Firebase Database connection was forcefully killed by the server. Will not attempt to reconnect. Reason: Invalid appcheck token.
NOTE
I have added both upload key and signing key SHA-1 and SHA-256 and updated .json file in my project and enabled AppIntegrity in Google Play Store

Reply all
Reply to author
Forward
0 new messages