I'm trying to run my app on Windows Subsystem for an Android emulator. Everything works fine except for the authentication.
Libraries used:
'com.firebaseui:firebase-ui-auth:8.0.2'
'com.google.firebase:firebase-bom:31.2.0'
My code:
activity.startActivityForResult(
AuthUI.getInstance()
.createSignInIntentBuilder()
.setAvailableProviders(Arrays.asList(
new AuthUI.IdpConfig.EmailBuilder().build(),
new AuthUI.IdpConfig.GoogleBuilder().build()
))
.setTosAndPrivacyPolicyUrls(activity.getString(R.string.terms_and_conditions_url)
,activity.getString(R.string.privacy_policy_url))
.setLogo(R.drawable.app_icon_512)
.setIsSmartLockEnabled(false)
.build(),
C.CODE_AUTH_REQUEST);
It won't start the authentication activity, and I'm getting the following errors:
[package name] requires the Google Play Store, but it is missing.
The service for com.google.android.gms.internal.auth-api.zbo is not
available: ConnectionResult{statusCode=SERVICE_INVALID,
resolution=null, message=null}
I suppose this happens because Google Play Services is not installed on the Windows Emulator.
However, from the Firebase docs, we can see that Google Play Services is not mandatory for Auth or other services.
https://firebase.google.com/docs/android/android-play-services#play-services-required-summary
Has anyone run into the same problem?
Since you're calling:
new AuthUI.IdpConfig.GoogleBuilder().build()
It means that you want to enable Firebase sign-in with Google, which indeed requires the Google Play services library to be installed.
Related
Your app is uploading users' Installed Application information to https://cloudconfig.googleapis.com without disclosing it in the privacy policy in Play Console.
I have searched in my project but there is no trace of the collecting the data using the link, indeed I use firebase SDK. Expecting a reason for rejection, when we use the same google products in our projects.
i am applying ads on my applications using android studio 3.0
but when i run the application it give this notification in Run Panel
Google Play services out of date. Requires 12210000 but found 10298470
help me fixing this problem
You are requiring services 12.0.0 in your build.gradle file, but the emulator or device has an out of date google play services. If you are using an emulator, you need to use an emulator with Google Play so that you can update the services version. https://stackoverflow.com/a/35498283/3962777
I have changed the dependencies and installed the necessary files needed. However, whenever I run my emulator, a message with pop up saying that I have to update my Google Play Services. Any idea on how to solve this problem?
Go to settings from file and update the Google Play services from the SDK manager:
I am currently supporting Twitter login in my Android application.
While the twitter Login runs successfully on Android 5.x devices, I am running into an issue on Android 4.x devices only.
On android 4.x devices, after entering the twitter credentials(username and passwd) on the authentication screen, it does not return back to my application.
In fact when I press the "Authorize app" button on the authentication screen, nothing happens! However when the Twitter client application (available on Google play store) is installed on the device, the authentication works fine and returns back to my app once the authentication is done.
Having debugged a bit, I feel this could be an issue with the WebView Client used in the "com.twitter.sdk.android.core.identity.OAuthActivity" within the Twitter core module.
(the shouldOverrideUrl() method checking for the callBack URL is never called for Android 4.x devices. The same is called correctly for android 5.x devices).
Stuck at this issue for couple of days now. Any help would be greatly appreciated.
Kindly let me know in case any additional details are required for debugging.
Thanks.
I use Google Game Services not in the first time, I have 2 apps using it and doing it ok.
Now I'm working on another app and found that even though it's connected to Google Play Game Services and shows me a user's name it can't use cloud save state feature.
My android app was published and then unpublished, so it is not a draft. Game (in Game Services Tab of Google Play Developer Console) also is published. I have two linked apps with the same package name and different SHA1 footprints: for debug eclipse and release version (as suggested by Google).
I've tried my old app on this emulator (genymotion) and it works and saves state.
I've double checked everything according to
https://developers.google.com/games/services/android/troubleshooting, but it looks that averything is ok.
But when trying to save app state both in release or debug apk I get the same STATUS_DEVELOPER_ERROR and in logcat I see the same message:
[97] a.a: Unexpected response code 403 for
https://www.googleapis.com/appstate/v1/states/3 Error executing
operation: Access Not Configured. The API is not enabled for your
project, or there is a per-IP or per-Referer restriction configured on
your API key and the request does not match these restrictions. Please
use the Google Developers Console to update your configuration.
Of course I've checked Google Developers Console and see that Google+ API, Google Play Game Services, Google Play Game Management and Drive API are on. I've even created a new Game (in Game Services Tab of Google Play Developer Console) and relinked my app to it, the same result: connection ok, yet STATUS_DEVELOPER_ERROR.
I'm trying to compare my new app with the previous, but I use the same IabHelper of Bruno Oliveira. And for my previous game Drive API is turned off, but cloud save works.
What did I forget?