I have an existing android app to which I plan to add Google cloud engine backend. I am following the steps as here
https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae.
I used the option "Google-->generate app engine backend" by right clicking on my existing project. and then went forward to test this.
I started the devapp server( I can see it running at localost:8888/_ah/admin/datastore). However When I run my application, I don't see the device registered in the 127.0.0.1:8888. The application runs as it used to run before. I tried both on emulator and on phone but the application just runs as before but I don't see any device registered in my devappserver.
Am I missing anything here?
Some basic steps for application registration were missing in my application. http://developer.android.com/google/gcm/gs.html
Adding them now and that should solve the problem.
Related
I would like to know if there is any effective way to test an app for Huawei Store using an Android Studio emulator.
I tried disabling the Google Play Services, but for some reason Retrofit requests stopped working :/
You can use Cloud Debugging of AppGallery Connect to test your app for Huawei Devices.
Cloud Debugging tests your app using mainstream Huawei devices provided by Huawei. You can run your app on the latest and most popular Huawei devices to test app functions.
Work with Cloud Debugging
Sign in to AppGallery Connect and select My projects.
Select an app to be tested.
Go to Quality > Cloud Debugging.
Filter devices by Series, Android version, EMUI version, and Resolution.
In the Apply for device model dialog box that is displayed, set Debug duration based on your needs. The options are 30 min, 1 h, and 2 h.
Wait for the device initialization to finish.
Click the Debugging tab.
Click Upload to upload an APK.
Check the APK upload progress and install the APK after the upload is complete.
In the displayed dialog box indicating that the app is being installed, click OK. When the installation is complete, you can see the app icon on the device screen on the left.
Operate the device by moving or clicking your cursor on the device screen, or clicking the power button, home button, menu button, or back button. The device will respond like your own phone.
Check Screenshot below:
You can check out the official documentation for a more complete answer.
For most cases, you can simply grab HMS Core APK and install it on emulator or physical device
You do not need for most cases Huawei device. Here is my battle-tested solution.
If you're implementing HMS (Huawei Mobile Services) feature like push notifications, sms retrieving or auth(orization) you can do simply:
Grab HMS Core APK from: https://www.huaweicentral.com/download-the-latest-huawei-mobile-services-apk/
Create new or run existing Android emulator via Android Studio or ADB
Install HMS Core APK downloaded from 1.
Go to Settings -> Apps & Notifications
Make sure that HMS Core has required permissions like SMS for SMS retrieving or push notifications
If you forget about 5., HMS library will return exception "Permissions not enabled"
I am pretty sure that instead of emulator you can use any of physical devices, grab APK and install HMS Core on it.
From: https://stackoverflow.com/a/63790263/4730812
Happy coding!
Well, I was trying here to make Retrofit work in this condition and I found a way.
I don't know if it is the best solution, but I will post it anyway.
disable the Google Play Services;
force stop your app;
restart the emulator;
check if it is working now (if not, try to force stop your app again).
P.S.: Google Play Services is not re-enabled upon reboot.
This is not a duplicate of the question: Unfortunately MyApp has stopped. How can I solve this?
The problem is when running an app on independent device, not connected to the computer.
Basically, I have a Flutter app that works fine in Run mode and Hot Reload of Android Studio and on the connected device.
However, when I created .apk file, placed this file to the Google Play Market and downloaded the app into the smartphone, the app does not work.
It looks like this: I press "Open" on the icon of the mobile app, I see a message "App has stopped" with available options "Open app again" and "Send feedback".
My questions are:
(1) How is it possible to check what exact failure the app has?
(2) Is it possible to use Fabric for Flutter apps? If yes - does this require the same actions as for an Android mobile app?
Thank you in advance for your support.
Sincerely,
Mary
Try this:
https://pub.dev/packages/firebase_crashlytics
Firebase crashlytics:
Whenever your app crashes or throws an error, the firebase crashlytics library will capture it and sends the details to firebase.
Make an account on firebase, and create an app. Click on Crashlytics on the side menu and complete the setup. It should start logging crashes to your firebase account.
Background:
I am getting the same issue. It works on many phones. But some of my users keep getting the error "Unfortunately myApp has stopped working". I just connected it to firebase_crashlytics. This works very well in Native Android apps. I am trying for the first time in Flutter.
My question is specifically about one line in Android documentation here. https://developers.google.com/android/work/prov-devices#set_up_device_owner_mode_google_account . Particularly item #2 where it says
The DPC is automatically downloaded to the device and launched.
How?
Specifically, what is the trigger that launches the DPC after download while still in the context of the startup wizard? I'm asking because it isn't working for me.
I've got Corporate-Owned Single Use (COSU) application, but I'm getting tripped up on deployment -- specifically the part where the DPC app sets itself as the device-owner. So far, I've loaded the app in Google Play Store as a private application. G-Suite exists in the same domain and Google is registered as the EMM for the account. The COSU app is whitelisted and installs as part of the setup wizard... but it doesn't launch.
To the best of my understanding, it has to launch within the context of factory-reset so that I can reset the device owner to the downloaded app.
Is there a specific Activity or BroadcastIntent I should be looking for? I'm new to Android, so I've been pouring through the TestDPC code, Android docs, and SO posts, but this deployment thing is a pain.
As a secondary query. How would you debug this situation? Its all factory-reset and install by wire, I don't have the opportunity to turn on developer mode and watch logs through Android Studio as it happens. And pushing new builds to Google Play and resetting hardware to download and install has a very long cycle time.
Thanks in Advance
For your DPC to be downloaded and launched after an account is added you need to register as your own EMM along with your DPC, and enroll your G-Suite domain with this EMM.
It might be simpler for you to instead use Google's new Android Management API which doesn't require implementing a DPC or registering as an EMM.
I'm trying to run the Google Cloud Platform Android app example, it' s a cloud guestbook app.
Later in the tutorial, it uses the Google Cloud Messaging to live update the guestbook as new messages comes.
So i runned a new emulator with Google and try the app to see if it works.
When i write a message on my real device, the emulator get update in few seconds, But when i write a message on the emulator the real device don't get update at all.
My real device run android 4.4.2 but it's a custom rom.
Here a screen when i run the app:
I think that the yellow triangle inside the Target means something, but i'm not sure of it because the Google Cloud Messaging should ever works, i mean, how can i use Whatsapp and similar apps?
Thanks for help!
I am trying to set up linking app for OAuth 2.0 client ID from following official instruction:
https://developers.google.com/games/services/console/enabling#step_3_generate_an_oauth_20_client_id
I found a problem: the "Certificate fingerprint: SHA1" is created from one computer's debug.keystone. So running app on android device from that computer is perfect.
But if I changed to another computer to develop, even the code are the same, the running app will error out(because the fingerprint not match). If I need to use multiple computer for development the sample app(for example, synchroniced by git), how do I manage to run the app smoothly from all computer? Is that possible? Do I just copy over the same keystone?
Thanks
---update:
I tried to copy over the debug.keystone, it doesn't work. The error message changed, but still show the fingerprint not match.