Working on a Cordova app:
We are trying to find a way to capture JSON results of an in-app transaction. In debug mode, we have access to the console, but in-app billing is disabled; when we've pushed an alpha or beta release to our GDC, the in-app billing works but we do not have access to the console. We use variations of pop-up alerts but this is a flaky solution. The main annoyance stems from having to build & upload to GDC every time we want to test new things that have to do with in-app billing. Surely there is something we're missing.
Is there a way to read the console (or any output of that sort) from a built Android app?
First of all plug your device to computer, from Android Studio, choose Tools > Android Device Monitor or click the Android Device Monitor icon. This will show your device and apps running on it. You can filter type of logs it is showing (because at moment device shows lot of logs).
But if you use command line then , in the SDK tools/ directory, enter the following command :
monitor
It will also open monitor tool. Here is documentation to this tool.
Related
I developed an application with react-native and I add app actions to the application.
I followed instructions on docs and test the app by App Action Test Tools (AATT) and it worked pretty well (the invocation name is 'Test app').
After creating the preview for actions, I tried with google voice assistant directly (not just using AATT) and still it worked pretty well.
Right now I create a project in google play console with name 'MyApp' and create an Internal testing release and add another user as a tester and upload aab file for this release.
Finally I shared the google play link with tester user.
Tester user installed the app but actions doesn't work with google voice assistant!! I tried different commands, such as 'Hey google, search time in My App' and 'Hey google, search time in Test App' and etc. But non of them worked!
Do I need 'create preview' for Internal testing?
This step is not clear to me, what I need to do more to be sure the app will work with voice assistant without create preview by AATT?
I am developing an app specifically for my dad's phone which is in a different country than I am. So far, I have only run the app through Android Studio's GUI build and run buttons. But this only works for my local test phone, not for his device - since it's not physically in the same place.
What are my options? Obviously, I can publish it to the Play store and he can download from there, but this presumably involves a lot of overhead paperwork. So this is not ideal. Is there an alternative?
Do I already have a built APK that I could simply send to him in an email for him to install with a few taps? If so, where can I find it? Or what do I need to do to get there?
Alternatively, could I do wireless ADB install by connecting to the phone's IP as I do when I'm on the same WiFi network? Is this possible as long as the specific port is forwarded by the router? Or do I need to do anything else?
Just setup an internal or closed test track; you don't have to publish these and newer versions would be automatically updated. With Crashlytics you can see the remote crashes... "Install from Unknown Sources " should also work with Crashlytics. I've recently setup Firebase App Distribution
:
Firebase App Distribution makes distributing your apps to trusted testers painless. By getting your apps onto testers' devices quickly, you can get feedback early and often. And if you use Crashlytics in your apps, you’ll automatically get stability metrics for all your builds, so you know when you’re ready to ship.
Alternatively, you could share the code through eg. GitHub, Cloud Source Repositories, Bitbucket.
I uploaded an app I developed to google play. Since the app isn't free, google doesn't allow me to download it to my device.
The first users who tried to download my app claimed they got the 505 error (by leaving their comments on google play).
I read some threads about this error here on stackoverflow and made some changes that hopefully fix the problem, but how can I check it myself? Do I need to use other people's devices and pay each time I want to check if my app is downloadable or is there a better option ?
thanks
edit: just to be clear - I'm looking for a way to see whether people can download and install my app without getting any error messages. Preferably by going to the google play and downloading it myself.
The app itself works great once it's downloaded and installed. The problem was that people couldn't download/install it on their device.
You can use Google Administration to check erros and statistics for your apps.
Login to your Google Account on this page:
https://play.google.com/apps/publish
There you'll find all your uploaded apps. You'll also find crash reports, etc. Just for better administration of your apps.
To test your app the best way is to use the debug or Run 'app' option in Android Studio. If you want to test the signed apk you can also build it inside Android Stuido with the Build -> Generate Signed APK option.
Or you use the console commands if you don't use an IDE.
Check the documentation of the ADB (Android Debug Bridge)
http://developer.android.com/tools/help/adb.html
I hope this helps.
I have recently set up basic In App Purchases in my Android app that I am building. The problem I am having is that every time I install the app, via USB, I get the error "This version of the application is not configured for billing through Google Play. Check the help centre for more information.".
It seems that the only way I can do a real test, using real SKUs is by uploading to the beta test group and installing from there. This can take up to 2 hours.
I am aware that I can use the SKU "android.test.purchased" instead of my own SKUs which I have created with the Android dev console. This is not ideal as it slows down my development time.
I am sure I am missing something and I was hoping someone could please point me in the right direction.
Thank you Karen.
Worked out my issue was due to not signing my app with the keystore each and every time I build the application and installed via USB.
This option can be found in File -> Project Structure
Then select the module that you are signing, and then the tab "Signing" from the top of the window.
From there you just need to press the plus and fill in your details for the keystore.
After which, you need to go to the "Flavors" and "Build Types" tabs and select the signing config (one you just created).
So I just uploaded my APK to PhoneGap. Now I've done this with iOS before and I had to create a provisioning profile (through Apple Developer site) with each phone ID for the users to download the app. Now Android is a different thing, I have NO CLUE how to add the users to test the app. It's in the "Permissions" tab. I've searched and have found ZERO information about this. It has to be something so simple that I am missing :/
There is no need to do anything for Android - you can send the final APK file to any testers and they can install it directly on their phones.
Note: they may need to turn on 'Install from unknown sources' - if they do not have that enabled the system will prompt them to turn it on when they try to install it