usiko
June 8, 2017, 7:22am
1
Hi, i’m making an app on ionic2, it work nice and smooth on android phone and ios phone, but it freeze a little on android tablet and it lag much on ipad…
What are ways to debug ionic performance? How can i track the possible leak of memory in my code? There are tutoriels for this?
Thanks
usiko
June 8, 2017, 7:55am
3
This is not unstable with ionic? Anyway i think i have a leak of memory in my code but i dont know how really track it…
I don’t think it’s unstable or I hope not, I use it in production/in store
Actually that plugin, if I understand correctly, gonna be soon shipped per default with the creation of new Ionic projects.
It really improve the performance on iOS, before spending hours, I advice you to give a try first, but only my point of view of course
usiko
June 8, 2017, 9:11am
5
How did you solve CORS problem? how did you set your config.xml?
Had to allow localhost in my backend
res.setHeader('Access-Control-Allow-Origin', 'http://localhost:8080);
Reference: https://github.com/ionic-team/cordova-plugin-wkwebview-engine/issues/111
And if you have to access file on the device, just remove the ‘file://’ in the url of the file
file:///var/mobile/Containers/Dat... => /var/mobile/Containers/Dat...
Reference: https://github.com/driftyco/cordova-plugin-wkwebview-engine/issues/80
usiko
June 8, 2017, 3:45pm
7
That not really help, on ipad i get some weird errors en lags…
Strange, for me it really improved the overall user experience, my app is simply more smooth with WkWebView.
Don’t have any other ideas, sorry.
usiko
June 9, 2017, 6:57am
9
it’s seem useless to set Access-Control-Allow-Origin to http://localhost:8080 if you use cordova Http natif
I don’t use cordova Http natif, that’s maybe the difference
usiko
June 12, 2017, 7:48am
11
Or maybe it’s because my ipad has 512 MB ram and my app is a bit heavy ^^