meumobi / mmb-demos.firebase-native-sign-redirect-ionic4

0 stars 0 forks source link

cordova-universal-links-plugin-fix is not installed #2

Open danconte72 opened 4 years ago

danconte72 commented 4 years ago

If remove old plugin, add ionic ionic-plugin-deeplinks And try to SignInWithRedirect on iOS

{"code":"auth/invalid-cordova-configuration","message":"cordova-universal-links-plugin-fix is not installed"}

On firebase SDK there is checks if plugins are installed

  this.isReady_ = fireauth.util.checkIfCordova().then(function() {
    // Check all dependencies installed.
    // Note that cordova-universal-links-plugin has been abandoned.
    // A fork with latest fixes is available at:
    // https://www.npmjs.com/package/cordova-universal-links-plugin-fix
    var subscribe = fireauth.util.getObjectRef(
        'universalLinks.subscribe', goog.global);
    if (typeof subscribe !== 'function') {
      throw fireauth.CordovaHandler.getError_(
          'cordova-universal-links-plugin-fix is not installed');
    }
danconte72 commented 4 years ago

this behavior it not happens on Android, it open Sign-In page

danconte72 commented 4 years ago

cordova-universal-links-plugin-fix is necessary and it works on iOS cordova-universal-links-plugin-fix is not necessary and it not works on Android

Is there a way to install the plugin only for one platform? There are some solutions on stack overflow https://stackoverflow.com/questions/23108342/install-cordova-plugin-for-one-platform-only