hi,
i want a php page on a web server (joint account) to notify a b4j program running locally, or if possible to notify a b4a app.
how is the best way to do this ? register a url in web database, and the php page opens a socket with this url ?
thanks.
Unless the network is specifically configured for incoming connections then it is not possible.
You should use push notifications to notify your Android application. You can use FirebaseNotifications. It should be simple to convert the B4J code that creates the request to PHP.
Only other way I know is polling. the app polls the server for "updates" using HTTPutils every so often. And the server will need a script specifically for that.
yes, but i dont want polling, i cant poll the server too much, and if i have 100 k users, it is too much.
and even if i have one app , and i want it responsive, i cant poll every 10 seconds.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.