Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
applications:push_support [2022/11/29 12:17]
admin
applications:push_support [2022/11/29 12:28] (current)
admin
Line 2: Line 2:
 ~~Title: Push support~~ ~~Title: Push support~~
  
-There'​s already a [[jvx:​communication:​push_support|push mechanism]] in JVx. In ..+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 listenerSimply 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.
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information