问题
I'm always getting this error when try to request for maskedWallet in production apk.
Things that I've already check:
- I've already check the public key and it was correct.
- Merchant is enabled in google play console and it was fine.
- It was working well on test environment.
- Wallet api was also enabled in my Manifest.
- Also production apk env was set to
WalletConstants.ENVIRONMENT_PRODUCTION
Anything else I'm missing that might caused this error?
回答1:
Make sure You have added the metadata Tag..
<meta-data android:name="com.google.android.gms.wallet.api.enabled" android:value="true" />
In the android Manifest....
If this doesn't helps you...please consider posting the Logcat Logs...
回答2:
You get this message with no error code because you haven't get approval from Google.
Sign up the form - https://services.google.com/fb/forms/googlepayAPIenable/
Then, Google will contact you
A. They need your apk pointed to ENVIRONMENT_TEST.
B: If your app is ok after their review, you need to submit more information related to your app.
C: They need you apk pointed to ENVIRONMENT_PRODUCTION and you need to sign your app.
So, just follow their instructions.
Some References:
Deploying your application from testing
https://developers.google.com/pay/api/test-and-deploy
Signing
https://developer.android.com/studio/publish/app-signing.html
来源:https://stackoverflow.com/questions/47587984/request-failed-on-production-apk