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)