Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

Wednesday, July 12, 2017

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.
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



.

No comments:

Post a Comment