I am implementing the "login by WeChat" feature for my Android app.
I followed all the steps on the official developer guide, however, I am consistently getting the error code ERR_BAN in my onResp function in the WXEntryActivity class.
I wonder what does ERR_BAN mean?
What are the possible root causes?
ERR_BAN error is probably happening because you have added the incorrect app signature.
In order to retrieve the correct signature you must download the Android Signature tool from the following link
https://res.wx.qq.com/open/zh_CN/htmledition/res/dev/download/sdk/Gen_Signature_Android2.apk
Install the app, add your app package id and add the generated key to the we chat admin interface:
https://open.weixin.qq.com/cgi-bin/index?t=home/index&lang=zh_CN
(hint: use the chrome translate plugin to navigate on the site, as it is in chinese only)
Related
I'm trying to publish an Instant app but got this error on review and release page.
Your Instant App APKs contain the domain 'xxx.xxx.com' that is already in use by another app.
If I remove the intent-filter that contains the domain, then this error will go away. So looks like it's the only issue in my app bundle.
However, that domain is not used by any other app. Also, I set up the assetlink.json file correctly, as I'm able to pass the test in App Links Assistant.
What are the other possibilities that Google may report this error to me?
I am learning how to use Espresso to validate intents. The documentation has the following example:
intended(allOf(..., toPackage("com.android.browser")));
Where can I find the package names of other existing apps (eg. Gmail)?
The answer can be found at https://support.google.com/admob/answer/3086746?hl=en:
Go to the Google Play store page.
Search for your app (eg. Gmail) and go to the app page.
Google Play URL uses the following format:
https://play.google.com/store/apps/details?id=<package_name>
Another way is to run a failing test and see what shows up.
So I'm trying to figure out the Google login system using Ionic, Googleplus plugin & Firebase. I set everything up according to the following tutorial:
https://github.com/EddyVerbruggen/cordova-plugin-googleplus
Then I ran the code on my phone as Ionic-run Android. When I do that I get an error 10. I looked it up and according to the following link:
https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/243
It seems like it's an issue with the debug version and the key? In Firebase, I set up an Android project with the debug key but I didn't add the Google.services.json or add the code they told me to add in my build.gradle file because I get an error. I also activated the google sign in method. Then I copied the demo app index. I'm not sure If I missed a step or didn't set something up correctly.
In case it's helpful for anyone else, I spent a lot of time troubleshooting this issue on Android. You need to make sure that your client_id for a credential of type "Web application" is used even though the SHA1 certificate hash you generate is associated with an OAuth2 credential of type Android. I was using the Android client_id instead of the Web application one. More info here: https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/425
I fixed it by using a different project, not really sure what changed.
I've built an android app and matching website, and I can get responses from the web no problem, but when I open the app I get an error
403: ""Access Not Configured. Please use Google Developers Console to activate the API for your project."
I'm using an Android Application Key for the android app, and a Browser Applications Key for the Phonegap App. Should Phonegap be using the Browser Application Key? If so, what is the referrer?
If I'm supposed to use the Android Applicatoin Key, I'm guessing it has something to do with the key I've provided to google through the developer console, though maybe somebody else has another solution.
At the end of the sha1 hash in the dev dashboard it asks for a your keystore sha1, followed by a name. I'm guessing this name might be the issue. I've used the same name as I used for my app in phonegap com.newstube.demo.
Does anybody know if that would cause this issue? Does that name need to be unique across google? Does it need to match something? Is something else completely causing this issue?
Sorry if this a stupid question but really want to know what is the purpose of registering the hashkey on facebokk app page. I nowhere use it in my application(if we have to use it then please let me know where).
The question is How my app will be authenticated using hashkey??
And how to sign my app using hash key???
Thanks for your Help!!!
Facebook requires an additional layer of security for mobile apps in the form of an
application signature. You need to put your Android application signature into your
Facebook application settings. You can generate a signature by running the keytool that
comes with the Android SDK. The following shows how to export the key for your app using
the debug defaults specified by the Android SDK and Eclipse.
Also Check this Hash Key for Single Sign-On
Also if i put another Key Hash which is not generated by me
You will get Invalid key Error if you use Wrong Key Hash .
Check this Login failed for Invalid Key
It's used as another layer of security. On how much it's actually used, I'm not 100% sure. But, here's a few links that might help.
Use of the Facebook App Key Hash
https://developers.facebook.com/docs/mobile/android/build/#sig