0

I'm stuck trying to call Google DecodeIntegrityToken API from my Android APP. There is no documentation or examples on how to do it.

I have completed the setup and managed to get an IntegrityToken up to this point.

The setup: https://developer.android.com/google/play/integrity/verdict

enter image description here

Here I found calling the API in LARAVEL: Decode integrity token using Google PlayIntegrity API

and this one in .NET: How to get a decoded Play Integrity API token using the Google Client API for .NET

But how can I call it from Java? There is no information. I can't find a way to call the API to decode the Integrity Token.

khelwood
  • 55,782
  • 14
  • 81
  • 108
pvalle
  • 1,335
  • 1
  • 13
  • 20
  • As this post appears similar to [your prior question](https://stackoverflow.com/q/72193058/295004) you should add detail as to what you've tried and where you are stuck – Morrison Chang May 26 '22 at 17:47

2 Answers2

2

The response you can decode using Java based hosted service. The integrity token can be sent to the Google server from hosted service and you can verify the response received from google. Enable PlayIntegrity API in Google Cloud Platform against the app and download the JSON file and configure the code. Similarly, you should enable PlayIntegrity in Google PlayConsole

Please check my answer

John_S
  • 532
  • 4
  • 10
0

For those who are looking for the node.js solution check my answer here

Decode integrity token using Google PlayIntegrity API

Steeve Favre
  • 248
  • 3
  • 9