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.
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