android


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

Related Links

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?

Categories

HOME
paraview
prism
nvd3.js
nunit
mjml
numbers
composite-primary-key
replace
zip
polling
banner
opengl-3
character
performancepoint
p2p
pega
siddhi
activecollab
filechannel
radgridview
linear-algebra
jersey-1.0
undertow
ksh
string-concatenation
roundup
game-theory
gpio
magento-1.8
modalviewcontroller
least-squares
imagenet
zoomify
release
mongoose-schema
jvmti
ogc
xv6
postgresql-8.4
subclipse
x++
dynamic-linq
sonarlint-eclipse
wcftestclient
spring-integration-sftp
bluez
zenhub
payara-micro
modelsim
template-toolkit
taocp
mapxtreme
custom-lists
latin
resourcemanager
jclouds
clipboard.js
nservicebus5
lua-telegram-bot
halcon
grass
crouton-os
asyncdisplaykit
jbase
relativelayout
intel-c++
phonertc
zen-cart
evolus-pencil
sony-lifelog-api
rdflib
dnssec
fail2ban
phpldapadmin
code-documentation
at-job
boost-program-options
addressing-mode
cocos3d
psr-4
mintty
alternate
vbe
multitasking
accesscontrolexception
printdialog
mongohq
kaleidoscope
joomla-template
dopostback
cuda-gdb
josql
window-decoration
gobject-introspection
expression-blend-4
exponentiation
webdev.webserver
inline-formset
dot-emacs
murmurhash
strtod
cuda.net
fdf

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App