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

0 stars 0 forks source link

TypeError: Cannot read property 'manifest' of undefined #1

Open danconte72 opened 4 years ago

danconte72 commented 4 years ago

What happened

Followed instructions set up firebase auth for cordova After installed $ ionic cordova plugin add cordova-universal-links-plugin-fix

When run $ ionic cordova build android --verbose Got

Prepared android project successfully
Executing script found in plugin cordova-universal-links-plugin for hook "after_prepare": plugins/cordova-universal-links-plugin/hooks/afterPrepareHook.js
Cannot read property 'manifest' of undefined
TypeError: Cannot read property 'manifest' of undefined
    at removeOldOptions (/Users/danielconte/dev/mmb-demos.firebase-native-sign-redirect-ionic4/plugins/cordova-universal-links-plugin/hooks/lib/android/manifestWriter.js:48:32)

Plugin info

ionic info

Ionic:

   Ionic CLI                     : 6.1.0 (/Users/danielconte/.nvm/versions/node/v12.16.1/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.0.1
   @angular-devkit/build-angular : 0.803.25
   @angular-devkit/schematics    : 8.3.25
   @angular/cli                  : 8.3.25
   @ionic/angular-toolkit        : 2.1.2

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.1.0, ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 11 other plugins)

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   ios-deploy : 1.9.4
   ios-sim    : 8.0.2
   NodeJS     : v12.16.1 (/Users/danielconte/.nvm/versions/node/v12.16.1/bin/node)
   npm        : 6.13.4
   OS         : macOS Mojave
   Xcode      : Xcode 10.2.1 Build version 10E1001
danconte72 commented 4 years ago

Why it happens

danconte72 commented 4 years ago

Plugin is necessary for iOS as seems on #2

danconte72 commented 4 years ago

How to fix

There is another for with both fix for iOS and Android https://www.npmjs.com/package/cordova-universal-links-plugin-fixed