I have implemented App Check for my application , I have registered Sha256s,activated appcheck in console,initialized it buy it doesnt work with play Integrity !! I always get " Detected invalid AppCheck token. Reconnecting (0 attempts remaining) Firebase Database connection was forcefully killed by the server. Will not attempt reconnect. Reason: Invalid appcheck token" , But with safetynet it works well however as we know it will be deprecated
My code:
as you can see if I change play integrity by safetynet it works well ,i can access to my db,but safe net will stop working in about one year
I have already read all posts related to this problem on this web ,but i havent been able to find a solution Thanks in advance