How to send an event data to android app from a web service SmartApp?


I am developing an android app working and communicating with a web service.

To build an android app which gets the event data, whenever the event from devices configured by a web service occurred, should I send the request to a web service to get data periodically in android app?

I hope to know the way a web service sends a data to android and the android notices there is the request that it should know like the broadcast receiver.

Use the new API.

It is designed for this scenario. In the current groovy API, this scenario is more complicated.

Will apps developed with the new API work in the legacy mobile app?