![]() To deal with the above caveat, I am looking at ways to use the HTML injector and continue serving the contents from regular cordova webview's origin. Once the app is ready, the plugin/hook can be removed to test it one final time with the actual app. This is not a major issue since most things like visual layouts and plugins work fine and account for most of the development time. Things like cross origin ajax requests, local storage and cookies, cdv:// files, etc work differently. The fact that the webview content is served from a server rather than the local file system makes it a little different from the actual Cordova app. This is a little tricky for Cordova since the webview content is loaded from platform specific locations ( like platforms/android/assets/To normalize this the hack that I had to put it was to monkeyPatch the canSync function that checks if events are from the same page the change was to ignore platform specific folders.
0 Comments
|