Trace: • Push support
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
applications:push_support [2022/11/29 12:15] admin created |
applications:push_support [2022/11/29 12:28] (current) admin |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | There's already a [[jvx:communication:push_support|push mechanism]] in JVx. | + | ~~NOTRANS~~ |
| + | ~~Title: Push support~~ | ||
| + | There's already a [[jvx:communication:push_support|push mechanism]] in JVx. Simply use this article and ignore the instructions for the listener registration because ProjX already is a listener. Simply extend ProjX: | ||
| + | |||
| + | <file java> | ||
| + | public class CustomApplication extends ProjX | ||
| + | { | ||
| + | public CustomApplication(UILauncher pLauncher) throws Throwable | ||
| + | { | ||
| + | super(pLauncher); | ||
| + | } | ||
| + | |||
| + | @Override | ||
| + | public void callBackResult(CallBackResultEvent pEvent) | ||
| + | { | ||
| + | if ("RELOAD".equals(pEvent.getInstruction())) | ||
| + | { | ||
| + | try | ||
| + | { | ||
| + | reload(); | ||
| + | } | ||
| + | catch (Throwable th) | ||
| + | { | ||
| + | error(th); | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </file> | ||
| + | |||
| + | Don't forget to configure your ''CustomApplication'' in **web.xml** and/or **mobile.xml**. Otherwise your application won't be used. | ||
