Google Cloud Messaging (GCM) / Apple Push Notification (APN) Service
When implementing mobile push notifications we need to use both GCM and APN. Both are having many differences.
Step 1: Study both GCM/ APN
Step 2: Implement generic interface/factory pattern to hide GCM/APN implementation. Developers are not supposed to aware underlying implementation
Step 3: Consider using generic APIs/Libraries.
Step 4: Do proper Architecture/Design
GCM is coming up with dry run flag. Consider using this. This won’t send messages to devices when dry run flag was set.
Google Cloud Messaging for Android