Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Providing automated login credentials in Pre-launch test of Google play console [Ionic]

I recently uploaded my first ionic app on google play. I started exploring the google play console and came across the Pre-launch tests.

We need to provide android resource name for the text-field for login, password and button for Sign-In button to make it work.

Any idea on how I could get this android resource names, or attach them to my elements. Or a way to get the resource name out of a built apk. I am not much familiar with the tools available for android development.

like image 790
karx Avatar asked Apr 08 '18 16:04

karx


2 Answers

Not works with Ionic.

Note: Credentials can only be automatically inserted into Android apps that use standard Android widgets. Credentials can't be used in apps that use OpenGL to render custom controls or apps that use a WebView for a web-based authentication flow.

https://support.google.com/googleplay/android-developer/answer/7002270?hl=en#signin

like image 128
lucianojs Avatar answered Oct 13 '22 11:10

lucianojs


Todo this you need access to the xml layout file for the apps login page.

This will be located in: project -> app -> src -> main -> res -> layout

Within that file you can get the following information needed.

Username resource name: Name of your username (email) EditText resource, skipping the R.id part, so for R.id.edit_text_email input edit_text_email

Password resource name: Same as above, but for password. Again, skip the R.id, e.g. edit_text_password

Sign-in button resource name: Same as above, but for the login Button. Again, skip the R.id, e.g. btn_login

Username: username or email you'd use for testing, e.g. [email protected]

Password: password you'd use for testing, e.g. testTEST123

This information will have to be entered in the apps Pre-launch report settings: Google Play Console -> All applications -> <app> -> Release management -> Pre-launch report -> Settings

Addition to this, here are some helpful Google links:

  • Use pre-launch and crash reports to improve your app
  • Use pre-launch reports to identify issues

Referenced from Voy's answer here.

like image 35
Anthony Cannon Avatar answered Oct 13 '22 12:10

Anthony Cannon