Mobile push notifications

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.

Links:
GCM
Google Cloud Messaging for Android

Google_Cloud_Messaging Wiki

APN:
Apple Push Notification

Generic Libs:
yii2-apns-gcm
PushSharp
AeroGear Push

Differences:
push-messages-on-android-and-iphone
-o-

Advertisements