Git Product home page Git Product logo

mohaxspb / huawei_and_google_services Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.58 MB

Demonstration of usage of Huawei or Google services for Maps, Location and Analytics in different flavors

License: MIT License

Kotlin 100.00%
huawei huawei-mobile-services huawei-maps huawei-map-kit huawei-analytics-kit google google-maps-android firebase-analytics google-location-service android kotlin kotlin-android

huawei_and_google_services's Introduction

Huawei and Google services example

This repository shows how to use Huawei or Google services for Maps, Location and Analytics in different flavors.

Preparations

You need to create accounts in Huawei and Google, enable services in developer console and get config files and keys.

Huawei

  1. Create developer account.
  2. Create application, define application id (package).
  3. Enable Analytics in application.
  4. Provide SHA-256 of signing keys.
  5. Download agconnect-services.json and put in in app/src/huawei/
  6. If you use Huawei device for tests - make sure, that Huawei Mobile Services updated to latest version.
  7. If you use non Huawei device - install Huawei Mobile Services APK from Huawei App Gallery. Provide system permissions for it. In that case you could use analytics feature and location feature, but maps won't work.

Google

  1. Create Google and Firebase accounts.
  2. Create project in Firebase.
  3. Add android application in Firebase. Provide SHA-1 of signing keys.
  4. Download google-services.json and put in in app/
  5. Go to Google Cloud Console, find you project, created automatically in step 2.
  6. Find key for MapKit. Put in instead of PROVIDE HERE YOU GOOGLE API KEY FOR MAPS FROM GOOGLE CLOUD CONSOLE in app/src/google/AndroidManifest.xml
  7. Make sure, that you have Google Mobile Services installed and enabled on you device.

Launch

Choose one of flavor huawei or google and see how it works!

Huawei and Google maps with markers:

Huawei maps with markers Google maps with markers

huawei_and_google_services's People

Contributors

mohaxspb avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.