Question

When I deploy and use application from Worklight server (Hosted on Apache Tomcat) everything works fine.

Now, When I make the Application State Disabled from Server. I want the client to be notified the same moment. Currently I am getting notified when my client application takes some action. How do I accomplish direct push from server when state is changed from Enable to Disable?

Any Reference guide for That?

Was it helpful?

Solution

This ability, or feature, does not exist in Worklight.
IMO it is not needed. Read the below.

Note the actual meaning of Remote Disable: "Remote Disable" is not about disabling the app itself, but rather about preventing the app from connecting to the Worklight Server (fetch data, ...).

That is the default behavior. Once an app is "disabled", the app itself is functional, but any request to the server will be blocked. So there is nothing to "push" to the app...

User documentation:

If what you want is to disable the app itself, you will need to override the default behavior. You can accomplish this by updating the app with custom behavior. This way, the next time the app tries to connect to the Worklight Server once it has been disabled, it will be blocked completely - this will depend on how and what you will implement. For example, display another HTML all together.

Blog post:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top