whitelist not working ionic with crosswalk

后端 未结 2 838
野趣味
野趣味 2021-01-17 16:17

I created a working app using ionic. there was no problem with fetching data from my site and everything was good.

I then went to add crosswalk to it and now i get t

相关标签:
2条回答
  • 2021-01-17 16:55

    I figured it out! The problem is that in the latest Cordova, they've split out the whitelist functionality into its own plugin.

    Simply run ionic plugin add https://github.com/apache/cordova-plugin-whitelist.git and you're good!

    0 讨论(0)
  • 2021-01-17 17:00

    I had problems getting tiles from openstreetmaps and google maps api and i solved it by followed the answer from this thread http://forum.ionicframework.com/t/crosswalk-whitelist/20329.

    Basically the workaround is to go to ""\platforms\android\src\org\crosswalk\engine\XWalkCordovaResourceClient.java" line 204, comment the return out and rebuild the app.

    Its not a smooth solution but it solves my problem for now.

    In regards to your other question the steps i would suggest is to first : Emulate using Genymotion. If that doesnt work i would try to remove and re-add Android.

    Hope it helps.

    0 讨论(0)
提交回复
热议问题