Apps are developed for convenience. The more feature you include in it, people would like it more. One of these features is Push Notification which alerts the user about an information. Mostly it should inform the user instantly as it is being updated, especially in case of those apps which should give you information in real-time – say, a cab booking app. But, implementing a push notification may be quite complicated often. Here are two major options that you can try.
Notification via GCM
It is the simpler and of course lighter method of sending a push notification to the users mobile. When an information is updated in the Admin, say an event, it sends the information to the Google Cloud Messaging service (GCM) and it then spreads the information to all the users. However, the drawback of this system is that it don’t guarantee realtime notification.
Notification via PHP Service
This is used mostly in the apps that demands sending and receiving information instantly, as I said earlier in the example of cab booking app. When a passenger request for a cab, the notification reaches to hundreds of cab driver and as soon as one accept, again instantly it should reach the passenger. To implement it successfully you need to send the request to your PHP database and forward it to the target mobile directly from there. However, it would put huge load on your server. So, if you try this option, make sure you have a dedicated server with great bandwidth.