Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Play services is required for this feature, but not available on this device #207

Closed
Taremeh opened this issue Nov 12, 2016 · 4 comments
Closed

Comments

@Taremeh
Copy link

@Taremeh Taremeh commented Nov 12, 2016

Hi,
I setup everything as it was written in the instructions:

Applying changes...
Successfully synced application org.nativescript.apphovenAlpha on device emulator-5554.
JS: firebase.init done
JS: Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
JS: Logged out from firebase

But as soon as I try to login (click the button) I get:

JS: Google Play services is required for this feature, but not available on this device

What's wrong?
I installed both packages 'Google Play Services' and 'Google Repository'. I also defined it in the build.gradle... And I don't get any errors - it just doesn't work.

@Taremeh

This comment has been minimized.

Copy link
Author

@Taremeh Taremeh commented Nov 13, 2016

Finally, I could solve it:

Make sure, you selected the "Google APIs Intel Atom" as your CPU/ABI in the AVD Manager (android avd)

If "Google APIs Intel Atom" doesn't show up as a option, then

  • type android into the terminal and copy / write down the SDK-Path, shown at the top. For me, it was "/usr/local/Cellar/android-sdk/24.4.1_1".
  • Set the ANDROID_HOME var to the SDK-path (no need to specify the version):
    export ANDROID_HOME=/usr/local/Cellar/android-sdk
  • Run android avd and select "Google APIs Intel Atom" as your CPU/ABI.
@Taremeh Taremeh closed this Nov 13, 2016
Taremeh added a commit to Taremeh/docs that referenced this issue Nov 13, 2016
If you want to use Firebase with AVD, you´ll need to specify ANDROID_HOME as "/usr/local/Cellar/android-sdk", otherwise it won't recognise Google APIs Intel Atom as the CPU/ABI, which is needed to run Google Play Services (which again is needed for Firebase).

More on this issue:
EddyVerbruggen/nativescript-plugin-firebase#207
@davidbcc

This comment has been minimized.

Copy link

@davidbcc davidbcc commented Aug 4, 2017

@Taremeh, I have the same problem as well. I have setup nativescript-firebase-plugin in my nativescript project. But, when I run the project and hit login method and it throws me the same error as mentioned above. JS: Google Play services is required for this feature, but not available on this device. Please advise.

@Taremeh

This comment has been minimized.

Copy link
Author

@Taremeh Taremeh commented Aug 9, 2017

@davidbcc The "fix" (see above) does not work? If so, please give more information: Are you using a physical device or an emulator (AVD / Genymotion)?

@davidbcc

This comment has been minimized.

Copy link

@davidbcc davidbcc commented Aug 10, 2017

Hi @Taremeh , Good Day! I have resolved my issue. I was using an emulator (AVD), I updated the Google Play Service on the emulator and re-boot the device. After that, all are working as expected.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.