Cordova-plugin-ionic-webview: Can I use this plugin for ionic 1 App?

Created on 21 Oct 2017  路  2Comments  路  Source: ionic-team/cordova-plugin-ionic-webview

I would like to know if its possible to use this plugin in ionic 1.
Currently I am using https://github.com/Telerik-Verified-Plugins/WKWebView so if we can use this plugin in ionic1 as well. so That would be great.

Most helpful comment

You can. But if you use localStorage, you probably will need to fork cordova-plugin-migrate-localstorage because apparently localStorage filename is different in each engine.

Edit:

I've forked cordova-plugin-migrate-localstorage so that it works with ionic-weview. https://github.com/kas84/cordova-plugin-migrate-localstorage

Basically the change is this one: https://github.com/kas84/cordova-plugin-migrate-localstorage/commit/3d42604444052b8aa42347001cce3657a086eb12

Plus in plugin.xml changed the dependency to because otherwise it would install wkwebview and would fail to build the app.

All 2 comments

You can. But if you use localStorage, you probably will need to fork cordova-plugin-migrate-localstorage because apparently localStorage filename is different in each engine.

Edit:

I've forked cordova-plugin-migrate-localstorage so that it works with ionic-weview. https://github.com/kas84/cordova-plugin-migrate-localstorage

Basically the change is this one: https://github.com/kas84/cordova-plugin-migrate-localstorage/commit/3d42604444052b8aa42347001cce3657a086eb12

Plus in plugin.xml changed the dependency to because otherwise it would install wkwebview and would fail to build the app.

Closing, you can use it as kas84 explained

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lincolnthree picture lincolnthree  路  7Comments

peterpeterparker picture peterpeterparker  路  6Comments

alexverbitsky picture alexverbitsky  路  3Comments

FarhadG picture FarhadG  路  6Comments

slymeng picture slymeng  路  5Comments