There are several examples (socket communication). For this you need to be able to run B4J apps on the server (= root server). Another way is to use Google https://www.b4x.com/android/forum/t...tification-c2dm-framework-and-tutorial.10542/
A third and most common way (because every cheap server supports it) is to use HttpUtils + php + MySql.
For all solutions you need some experience or fun to try There are several examples here. Just start simple (sending strings and send something back)
There is no way to directly send a message to your device.
See
https://www.b4x.com/android/forum/t...ion-gcm-framework-and-tutorial.19226/#content
for a tutorial on how to send push-notifications.
Send a push notification to your device. the app receives the notification with a short info what to get...
Then use httputils from inside the app to get the desired data from your server.