EddyVerbruggen / Custom-URL-scheme

:link: Launch your Cordova/PhoneGap app by a Custom URL scheme like mycoolapp://
1.03k stars 365 forks source link

Current working directory is not a Cordova-based project. (support for capacitro/ ionic-react) #313

Open victororlyk opened 4 years ago

victororlyk commented 4 years ago

I am trying to make authorization with : "@auth0/cordova": "^0.4.2", "cordova-plugin-safariviewcontroller": "^1.6.0", "cordova-plugin-customurlscheme": "^5.0.0", "auth0-js": "^9.12.2", "@capacitor/core": "1.3.0", "@ionic-native/core": "^5.19.1", "@ionic/react": "^4.11.8",

Well currently there is no way to run this on react.

cordova plugin add cordova-plugin-customurlscheme --variable URL_SCHEME=mycoolapp

will throw out

Current working directory is not a Cordova-based project.

Adding it manually as you said may shoot in the foot. Where should i connect this file LaunchMyApp in ios html?

Copy www/ios/LaunchMyApp.js to www/js/plugins/LaunchMyApp.js and reference it in your index.html:

<script type="text/javascript" src="js/plugins/LaunchMyApp.js"></script>

And app stops after login is done with infinite loader https://github.com/auth0/auth0-cordova/issues/31#issuecomment-304068718

CristianBerlingo commented 4 years ago

Is there any notice on this issue? I have the same problem. The documentation will be updated for capacitor-based projects?

Thanks.