I'm making phonegap app on ios, with some games in. The structer is based on angular, and what I want to do is open diffrents games in appropriate view. GameOne in viewOne, GameTwo in viewTwo etc. Each game is store in its own directory. e.g. games/GameOne
So I was thought, that i can add c2runtime.js to the DOM on current view, and fire game, but on ios it's not working. The problem is that script is looking for resources in root of app, instead in game directory. e.g app/static/sample.png -> app/games/gameOne/static/sample.png (correct).
How can i do this ? Is it possible ?
If i remember correclty it was working in browser...