Socket
Socket
Sign inDemoInstall

cordova-hms-push

Package Overview
Dependencies
2
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-hms-push

Cordova huawei Push Plugin


Version published
Maintainers
1
Created

Readme

Source

cordova-huawei-push

The huawei push for cordova, hms sdk version, now only support android.

Install

cordova plugin add cordova-hms-push

Open the root project level build.gradle, ensure the following settings added

buildscript { repositories { maven { url 'http://developer.huawei.com/repo/' } } dependencies { classpath 'com.huawei.agconnect:agcp:1.0.0.300' } }

How to use

Init the hms connection

cordova.plugins.hmspush.init();

Token Registered

document.addEventListener('hmspush.tokenRegistered', function (event) {
    console.log(event.token)
}.bind(this), false);

You can get the token value by event.token

Keywords

FAQs

Last updated on 01 Dec 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc