GCM alternative for local networks or sending messages to device IP
I want to send notifications to some devices connected to my local network. First alternative was GCM but this implies sending a message to Google server and then Google server sends the message to devices. What if currently my local network is not providing internet? If there is no such alternative like this, is there a way to send a message through a TCP package directly to the device?
You should take a look at MQTT. There is also a Java library that is compatible with Android; the Eclipse Paho Client. In very simplistic terms, MQTT an asynchronous publish/subscribe mechanism that is well suited for what you want. It runs on top of TCP/IP.. You will need to use a MQTT broker on the server side (i.e. mosquitto (mosquitto.org) or RSMB (Really Small Message Broaker), etc) If you are interested, I created a simple project that allows you to connect to a Raspberry Pi and turn the lights of your house on and off using and Android device. Here is the git
Why app is not crashing on 6.0 (API23) platform for deprecated getResources().getColor() without support library?
How do I replicate a website's JSON Request in my Android App
Finding a point along a geodesic polyline in android maps api
Galaxy S6 GPS sample delayed after phone idle for extended period
Record texture any frame in video file
java.lang.IllegalStateException: Fragment already added:
Wordpress REST API link and first image from videos from YT
Zxing ViewFinderView view updates,but scanning area not updated on Nexus 5X
Android Horizontal View to Contain a List Starting from Center
Best way to get user GPS location in background or foreground in Android
How to run correctly SurfaceView in Fragment?
How to place a image using imageview below tabbed bar in android?
Google Play Store Commission fees
calculate app uptime - android
I am trying to use camera by reading android developer documentation and i am getting null as the intent data
How to swipe into a Fragment as big as the screen from a View not as big?