如何在Ionic 4中使用Ionic 3 Cordova插件?

时间:2019-08-10 05:08:54

标签: angular cordova ionic-framework capacitor

Spotify OAuth教程之后,我尝试在Ionic 4电容器应用程序中使用this插件。单击登录按钮时,出现[value]="transferFeeTblCombBxRowIndex == '0'"错误。如何使用此Cordova插件?

2 个答案:

答案 0 :(得分:0)

据此

  

https://capacitor.ionicframework.com/docs/cordova/using-cordova-plugins/

id

然后

npm install cordova-spotify-oauth
npm install cordova-plugin-customurlscheme --variable 
URL_SCHEME=devdacticspotify

答案 1 :(得分:0)

看看这篇文章: https://www.joshmorony.com/using-cordova-plugins-that-require-install-variables-with-capacitor/

您需要更新app/src/main/res/values/strings.xml(或AndroidManifest.xml)文件