So now we have decided to develop and android application around android push notifications. But what is push notification and how it came , what benefits it provides these few things are necessary to know before be embark on our journey to implement push notification in Android.
Historically there exist two types of models for communication between clients and server in a client server architecture based application.
- Pull architecture
- Push architecture
Both architectures have there own set of advantages and disadvantages. Now in a pull architecture client continuously polls server in some time interval for fresh data. and that fresh data can be utilised by client. But now the problem came when data at server was not fresh so pull request was done for no fresh results.
* Remember every pull request consumes a very minimal amount of system resources. But when this phenomenon is applied in mobile paradigm where resources are low [ Memory,Network bandwidth,Processing Power, storage , Battery life], this starts showing its effect.
And this was the scenario where Push architecture was proposed.
So logically you can say that server will push data to clients whenever fresh data is available at the server. But again push has its own limitations.
For eg As per Google you have a limit of 4KB as a size of push message that can be pushed to android device.
There are other limitations also but lets keep them for next blog lets not make it more complex.
So now you are in a slightly better position to answer push notifications are really needed ?
In our journey to learn push notifications in Android we will come across below blog post
- Push notification are they really needed ?
- Android Push notification implementation in android app [ Client integration ]
- Android Push notification implementation in android app [ Http Server integration