I am currently trying to develop a native application for android with the help of ionic and I am using webgazer.js as a needed script for my application.
I imported webgazer in the index.html like that:
When I run ionic serve and use my code as a web page there is no problem with the performance of webgazer, also not on my mobile phone (web page hosted via firebase). Only if using ionic cap copy and npx cap run android and running it on my mobile phone the performance is really bad. You can see animation being really slow etc.
Someone knows if or how this can be fixed or has an idea why this occurs?
Feel free to ask for more information.
I am currently trying to develop a native application for android with the help of ionic and I am using webgazer.js as a needed script for my application. I imported webgazer in the index.html like that:
<script src="https://webgazer.cs.brown.edu/webgazer.js?" type="text/javascript"></script>
and use it in ts code with:
declare var webgazer: any;
When I run ionic serve and use my code as a web page there is no problem with the performance of webgazer, also not on my mobile phone (web page hosted via firebase). Only if using ionic cap copy and npx cap run android and running it on my mobile phone the performance is really bad. You can see animation being really slow etc.
Someone knows if or how this can be fixed or has an idea why this occurs? Feel free to ask for more information.
Glad if someone can help me here.