Defined "nothing at all seems to work" -- do you mean that Pixi isn't responding to touch events, or that more is going wrong?
The catch here is that I know nothing about pixi -- so they may be handling events in a way that doesn't work on mobile devices. I don't know how easy that would be to change or fix, but they're probably going to be the best resource on that.
I'm curious -- does the app run in Android Chrome and exhibit the same touch problems?
I do indeed mean there are no touch events that I can detect, but otherwise all runs ok
Browser is not a problem, I just can't find how to get touch events when wrapped by PhoneGap...
OK, but when you say "Browser", do you mean a desktop browser, or are you also referring to mobile browsers, like Chrome on Android?
But look, I am doing these events in such a way that they work with pixi/cordova + cocoon.io wrap to apk. But this does not work with PhoneGap. Fair enough, but where is the documentation that tells me how to do what is, after all, an incredibly simple requirement?
So, first: just because something works on a desktop does not guarantee that it will work on the mobile device browser. The best place you can use to determine what is and isn't supported on a mobile device's webview is caniuse.com. Given that PhoneGap is using a mobile webview, the information there is largely pertinent to PhoneGap as well.
Based on browsing Pixi's documentation, it looks like you are using "pointer events" (look at Source: interaction/InteractionManager.js , starting at line 723). These are not supported on all devices, as you can see here: http://caniuse.com/#feat=pointer
As such, you'll want to use touch events if pointer events aren't supported. The following documentation should lead you down the right path:
Thanks again kerrishotts,
But I've been around all this event stuff. What I'm saying is that nothing works. Touch events are simply not there on PhoneGap. I can get them on desktop browser, mobile browser and cocoon.io (which is in theory the same thing as PhoneGap)...
In your OP, you had:
Have you tried something else instead of "pointerup", like "touchstart"? If so, let us know everything you've tried so that we know where to look next.
What version(s) of Android have you tested on? Are you testing on-device (if so, what device(s)) or on the emulator? What version of the system webview is installed?
Yes, I've been through all the event name combos.
I think the key question is - why don't any of the pixi interaction concepts work? So -
g_cont3 = new PIXI.Container();
g_cont3.on( * , startNewGameFromMenu);
The above is fundamental to pixi. Set an object's .interactive flag to true and you should get 'events' coming through. With PhoneGap none of that works.
I am testing on a nexus 7P with current Android version,