Search code examples
ibm-mobilefirstworklight-geolocation

Sending Push notification from client - Worklight


I know that push notifications are being sent from a backend server. Is it possible to send notification from client itself? My application goes like this: It acquires its position using Location services API. once it enters a specific circle, the trigger calls a callback function. What i want to do is to use the callback function to push a notification to the device. Is there any way to do this?

Thank you very much in advance!


Solution

  • You can invoke a procedure in the client side. I tried to invoke in the client side with httpAdapter and its working.

    If the notification doesn't need to come from the server, you can also create a service that will run in the background and show a dialogbox once it enters the geofence.