/hms-start-hacking-reactnative

ReactNative template project to immediately start experimenting with kits from Huawei Mobile Services

Primary LanguageJavaMIT LicenseMIT

Huawei Mobile Services starter project for React Native

Welcome to Huawei's workshop at HackZurich 2021 !

You have a bunch of fresh ideas and you aspire to make them possible with the help of the Huawei Mobile Services (HMS). We feel your enthusiasm - that's why we prepared this React Native starter project that will allow you to start coding immediately and avoid time consuming configuration steps. The project is designed for Android devices only.

I'm in!

  1. fork/clone this project
  2. visit the workshop Slack channel #03_ws04_huawei
  3. look for the file with secrets (direct link )
  4. unzip the file into the project's android directory
  5. start coding!

What just happened? Am I really ready to go?

Yes!! The starter project is a native Android skeleton app that:

  • has the main HMS Kits added as dependencies
  • has all relevant permissions added to the Android manifest
  • connects to a shared account on App Gallery which needed by the majority of the HMS Kits
  • when started, you can tap on "Check HMS status" to do a check if everything is properly configured

The file with secrets is the link between the starter project and the shared account. It contains:

  • the agconnect-services.json configuration file
  • the signing configuration needed to authenticate this app to use HMS services

But I don't have a Huawei HMS test device ...

There are solutions.

  1. If you're participating on-site, ask for a test device at the Huawei booth
  2. Download and temporary install HMS Core on your own Android device from here
  3. Cloud Debugging : this requires you to actually own/create a Huawei ID, but once that's done, you can just download the HMS Toolkit Android Studio plugin and access physical devices in the cloud

Starter projects for other platforms

More HMS code samples:

Happy hacking!