How to push notification without open the app

I'm using android demo code. When run the code it asking to click the Notify demo then it shows the iBeacon list from that, when i click anyone it push the notification and shows the text to lock the device move away from Beacon. How can i push notification without doing above all the process?

Hi Raj,

This code is just for the demo purposes. If you want to receive notifications without selecting a beacon you have to use startMonitoring method of BeaconManager class to start monitoring regions. Monitoring updates come to listeners registered with setMonitoringListener method of BeaconsManager class.

Best,

I can receive the notification once open the app. But the notification is coming everytime when open the app. Then how can i notify the user without opening the app. Once i open the app then only i send the notification otherwise it's not sending in background