danielideriba / PushKitHMSExample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PushKitHMSExample

General configuration

For iOS

Install Homebrew :

/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Node.js :

brew install node

Install watchmen :

brew install watchman

Install React Native CLI :

npm install -g react-native-cli

Install Android Studio

https://developer.android.com/studio

Install Visual Studio Code

https://code.visualstudio.com/

For Windows

Install Chocolatey

https://chocolatey.org/ @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

Install Node.js :

choco install -y nodejs.install

Install React Native CLI :

npm install -g react-native-cli

Install Android Studio

https://developer.android.com/studio

Install Visual Studio Code

https://code.visualstudio.com/

With environment ready

Install the HMS plugin for Push Kit. Follow the command: npm i @hmscore/react-native-hms-pushkit

React Native command to build the app: react-native init [PROJECT NAME] - Build Android/iOS and start project react-native run-android - Build Android environment react-native start - Run metro

https://www.npmjs.com/package/@hmscore/react-native-hms-push

Adb Tips

adb uninstall [PACKAGE NAME] - Remove app from device

Usefull links

https://developer.huawei.com/consumer/en/hms/huawei-pushkit/ https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-References/instanceid-0000001050157805

About


Languages

Language:Java 35.9%Language:JavaScript 25.0%Language:Objective-C 24.6%Language:Starlark 10.5%Language:Ruby 4.1%