Open codepoet80 opened 2 years ago
I doubt that ApplicationEvents completely don't work, since they're used in quite some apps such as Just Type, email etc as per https://github.com/search?p=1&q=org%3Aopenwebos+ApplicationEvents&type=Code.
It could be that some of them (such as luna-systemui) aren't working. Then again I could be wrong of course.
I built a tester app so we can see the missing application events. You can download it here: stacks.webosarchive.org/luneos/com.jonandnic.enyotester_1.0.0_all.ipk
In a quick test, the launch and menu events are firing in LuneOS, but not the relaunch and screen events. The screen grabs attached show the same sequence of actions on a tenderloin running webOS and LuneOS...
Note LuneOS is missing actual rotation events (but firing a spurious rotation event at startup) and the relaunch events. All enyo.ApplicationEvents have been wired up, so if you can figure out a way to invoke them, they can be tested with this app.
I'm really not sure where these are handled, I don't see any hooks in Open webOS code for these events in any of the browser related stuff, so it seems it's fully Enyo Framework somehow.
Rotation events seem to be working in newer builds. ApplicationRelaunch is still an issue.
Describe the bug Enyo supports ApplicationEvents that bubble domEvents to apps. These are used for detecting screen rotation and application relaunches. These ApplicationEvents are not be fired in LuneOS (of if they're fired, apps aren't receiving them), which significantly impact the functionality of some apps.
To Reproduce Steps to reproduce the behavior:
Expected behavior As documented here, application events should be raised to any app with an
ApplicationEvents
kind. http://sdk.webosarchive.com/docs/docs.html#dev-guide/enyo/application-events.htmlAdditionally, it should be noted that the originating DOM event (window.onresize) is not raised to the app either. The problem may be at the webkit level?
Smartphone (please complete the following information):
Additional Context ApplicationEvents are implemented in
dom/ApplicationEvents.js
https://sdk.webosarchive.com/api/index.html#dom/ApplicationEvents.js