Thursday, March 22, 2018

202 IonicV1 Creator Ionic Native App Availability

202 IonicV1 Creator Ionic Native App Availability



.
202 IonicV1 Creator Ionic Native App Availability
The AppAvailability plugin allows you to check if an app is installed on the user�s device. It requires an URI Scheme (e.g. twitter://) on iOS or a Package Name (e.g com.twitter.android) on Android.
cordova plugin add https://github.com/ohh2ahh/AppAvailability.git

IONIC CREATOR STEPS

1. Create a project.
2. Add ionic native to the project.
3. Add Cordova Plugin.
cordova-plugin-appavailability
4. Add codes to Controller.
function ($scope,$cordovaAppAvailability) {
  document.addEventListener("deviceready", function () {
    $cordovaAppAvailability.check(twitter://)
      .then(function() {
        alert("app is available");
      }, function () {
        alert("app not available");
      });
  }, false);

}

REFERENCE

http://ngcordova.com/docs/plugins/appAvailability/

https://github.com/ohh2ahh/AppAvailability

.

visit link download

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.