I am trying to send a notification to the application on the android device of all active and inactive users from a server. What do i need to use? GCM? The notification needs to to appear to all devices where the app has been installed in android.
            Asked
            
        
        
            Active
            
        
            Viewed 1,109 times
        
    2 Answers
1
            GCM is enough for your case. Maintain a user table which store the user register ID. Then you can send GCM message from your server to the indented users using the user register ID. See this GCM tutorial
 
    
    
        BeingMIAkashs
        
- 1,375
- 11
- 18
1
            
            
        You have to use Google Cloud Messaging (GCM) which google provided to achieve this type of functionality. Instead of hitting the server from the client on regular basis. The server will send the message to the client if he has any message for their clients. https://developer.android.com/google/gcm
 
    
    
        droidd
        
- 1,361
- 10
- 15
