EddyVerbruggen / Custom-URL-scheme

:link: Launch your Cordova/PhoneGap app by a Custom URL scheme like mycoolapp://

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

victororlyk opened this issue · comments

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
auth0/auth0-cordova#31 (comment)

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

Thanks.