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

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

Categories

HOME
django
cobalt
android-studio-2.2
character-encoding
owl-carousel
onclick
vsm
joomla3.0
accessibility
octave
ibeacon-android
cmdb
supervisor
speech-synthesis
event-sourcing
jersey-1.0
selinux
google-maps-autocomplete
exit
roundup
data.stackexchange.com
pic32
jackson-modules
underscore.js
paperjs
twiml
hibernate-validator
spring-security4
simplecv
sendbird
hunspell
engine.io
raft
playframework-2.1
apns-php
resolution
attributeerror
postgresql-8.4
vaadin-elements
globalize
twilio-click-to-call
azure-cli
template-toolkit
polyline
cvxpy
chromium-os
slackware
pytables
meteor-packages
envi
segment-io
dotnetnuke-7
hclust
eigenvector
rasterize
sapi
tfs-workitem
pypiserver
include-guards
zscript
dulwich
cross-join
insight.database
ios8-extension
amslidemenu
qscrollarea
git-repo
mt4j
swfobject
sqlclr
midlet
u2netdk
exponentiation
uipagecontrol
timthumb
inline-formset
cloudfiles
eclipse-marketplace
cfwindow
tui
wysiwym
linfu-dynamicproxy
great-circle

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