I work with a hybrid application that was created in Ionic, and I wonder if it can be run on iOS without using Cordova / PhoneGap. In short, I need it to work in a web browser on a hybrid platform that is not Cordoba or Phone Break. Since ionic DOES work on desktop browsers, I assume this is possible (is this assumption wrong?)
Currently, the application is suspended in the place where, in the initialization of ion beams, the ion platform has its own “ready-made” function, launched with “this.isReady”, which is set to true. As far as I can tell, during setup, the application listens for the "deviceready" event for web viewing, which does not start without the Cordoba frame. I tried setting up a temporary function like the following to simulate this:
window.setTimeout(function() {
var e = document.createEvent('Events');
e.initEvent("deviceready", true, false);
document.dispatchEvent(e);
}, 5000);
Unfortunately, this also did not work for me. I am wondering if there could be some other workaround? It might be better to edit the platform to “trick” the ion system into thinking that it works on a desktop browser. I fiddled with this, but so far it has not worked.
I already posted this on the ion forum, but maybe some of them might have some ideas.