danielideriba / CordovaHMSGMSCheckVerifyPlugin

Verify if on the application have the Google services or Huawei Services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to com-huawei-cordovahmsgmscheckverifyplugin!

This plugin is for identify if is available Google services or Huawei Services. Based on https://github.com/salmanyaqoob/Cordova-All-HMS-Kits/tree/master/CordovaHMSPlugin/CordovaHMSGMSCheckPlugin and https://github.com/horaas/CordovaHMSGMSCheckPlugin

Install

cordova plugin add com-huawei-cordovahmsgmscheckverifyplugin
cordova plugin add https://github.com/danielideriba/CordovaHMSGMSCheckVerifyPlugin.git

Use

CordovaHMSGMSCheckPlugin.isGmsAvailable(function (response) {
  alert("is GMS available in this device? "+response);
}, function (error) {
  alert(" Error: "+error);
});

CordovaHMSGMSCheckPlugin.isHmsAvailable(function (response) {
  alert("is HMS available in this device?"+response);
}, function (error) {
  alert(" Error: "+error);
});

About

Verify if on the application have the Google services or Huawei Services


Languages

Language:Java 89.4%Language:JavaScript 10.6%