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
Creating Custom Keyboard in Android with Custom Images
How do I make multiple retrofit calls in different tabs, tablayout?
Stripe.apiKey not resolving in Android
How do I get Android TabLayout to work even after adding support and design in gradle?
JodaTime period returns unexpected results
Android - change foreground of NavigationMenuItemView
ReactNative - working with creation of dynamic ui-components
Deprecated getChildPosition() in recyclerview in android
Find element id when drop
Use FloatingActionButton with Banner in CoordinatorLayout
How to setup a mongoDB server and use it for an android application?
Can't access localhost from Android Windows Emulator (Visual Studio 2015 / Xamarin)
Error:Execution failed for task ':app:packageDebug'. > !zip.isFile()
Android: Failure [INSTALL_FAILED_VERSION_DOWNGRADE], but version is already higher than published
Android Service cannot start because of a ClassNotFoundException from a class that doesn't even exist anymore
FingerPrint cannot work in Service