android


Handling notifications in android


I would like to know what is best practice when operating with push notifications in particular GCM notifications. Where should I ignore the notification from the server side. That is to say the server only send notifications to active users or the client side where the server sends out notifications but the app ignores them based on whether the activity is open or closed.
It's always better to decide at the server side which devices have active users, and only send notifications to them.
The reasons:
You don't want to run any code in the client side if you are not going to do anything with the incoming GCM message, since that would just be a waste or battery life.
It's better to reduce the number of messages your server sends to GCM server, since this way, the devices that should recieve and display the notifications will recieve them faster.

Related Links

Different sqlite databases for testing and actual use in android app
Android Firmware 4.4.2 Bluetooth Disconnected Every 10 seconds
Allow input from bluetooth keyboard even if screen locked
onActivityResult() is not called when using Tab Widget
How to add search tags in an activity in android?
Parse.com Push notifications and ordered broadcast
Android;manage UI controls according RBAC
How to draw opengl Cube in android.view.TextureView
Android big picture style notification with multi line summary text
After tap on app icon,launcher create a new instance of root activity again & again.
Problems with locating ArrayAdapter creation
android repeat sound lag
Failure [INSTALL_FAILED_OLDER_SDK] in Android
Android Camera: fixed lens focus
Manifest error while implementing MaterialNavigationDrawer
libdgx vector3 conversion wrong

Categories

HOME
windows
polymer
redux-form
solaris
jsf-2.2
scripting
parameters
babeljs
echo
x264
azure-container-service
webix
teechart
project
heap
selenium-ide
renjin
flash-player
scrolltop
qsqlquery
modbus-tcp
mvc-mini-profiler
swagger-2.0
solrcloud
simpleitk
microsoft-ocr
event-store
aggregation
flask-sqlalchemy
has-and-belongs-to-many
firebase-analytics
wcag
paperjs
twiml
sqsh
constexpr
dotspatial
panoramas
recurring-events
powershell-ise
hibernate-validator
classcastexception
google-earth-engine
gdata
cin
kill
visa
branching-and-merging
tcc
berkeley-db-je
strftime
textsum
opennms
wcftestclient
globalize
reportservice2010
wpas
modelsim
java-6
opengl-4
oozie-coordinator
javafx-css
reporting-services-2012
shopping
thread-sleep
highland.js
iokit
roadkill-wiki
opserver
batik
ocra
liquid-layout
jquery-forms-plugin
zxspectrum
gamekit
document-repository
rmysql
gpars
epiceditor
dolby-audio-api
onload-event
apache-abdera
patricia-trie
faye
usertype
relative
role
jqote
socketserver
instantiationexception
facebook-iframe
easyb
office-2007
jqueryform

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