Mobile Push Gateway for APNs and GCM

Send APNs and GCM notifications even when devices are offline with PubNub Mobile Push Gateway

What Mobile Push Gateway Does

  • Deliver mobile push notifications to iOS and Android devices, even when an app is offline
  • Seamless fallback to Push Notifications (Realtime socket connection attempted first)
  • Automatic Push to millions of devices with a single Publish
  • Push messages across mobile, browser, desktop and server with a single API

Key Features

  • Channel Push for the delivery of high volumes of parallel push notifications instantly
  • Push Support for iOS and Android, with realtime connectivity for Blackberry, Windows 8, Symbian, Titanium, Corona, PhoneGap and more
  • Message Queuing ensures delivery of messages even with mobile connection dropouts
PubNub Mobile Push Notifications
  • App in Background
  • App Running
PubNub Mobile Push Notifications PubNub Mobile Push Notifications
PubNub Mobile Push Notifications

Resources

Get the Code
    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    9. 9
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
  1. // Send Push Notification to all devices
  2. // registered to `my_channel`
  3.  
  4. pubnub.publish({
  5. channel : 'my_channel',
  6. message: {
  7. "aps" : {
  8. "alert" : "You got your emails.",
  9. "badge" : 9,
  10. "sound" : "bingbong.aiff"
  11. },
  12. "acme 1" : 42
  13. }
  14. });
    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    9. 9
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
  1. // Send Push Notification to all devices
  2. // registered to `my_channel`
  3.  
  4. JSONObject jso = null;
  5. try {
  6. jso = new JSONObject("{
  7. 'aps' : {
  8. 'alert' : 'You got your emails.'," + "
  9. 'badge' : 9,
  10. 'sound' : 'bingbong.aiff'}," + "
  11. 'acme 1': 42
  12. }");
  13. pubnub.publish("my_channel", jso,
  14. new Callback(){
  15. @Override
  16. public void successCallback(String arg0,
  17. Object arg1) {
  18. System.out.println(arg1);
  19. }
  20. });
  21. } catch (JSONException e) {
  22. e.printStackTrace();
    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    9. 9
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
  1. // Send Push Notification to all devices
  2. // registered to `my_channel`
  3.  
  4. pubnub.publish(
  5. :channel => 'my_channel',
  6. :message => {
  7. "aps" : {
  8. "alert" : "You got your emails.",
  9. "badge" : 9,
  10. "sound" : "bingbong.aiff"
  11. },
  12. "acme 1": 42
  13. }
  14. )
    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    6. 6
    7. 7
    8. 8
    9. 9
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
  1. // Send Push Notification to all devices
  2. // registered to `my_channel`
  3.  
  4. pubnub.publish({
  5. 'channel' : 'my_channel',
  6. 'message' : {
  7. "aps" : {
  8. "alert" : "You got your emails.",
  9. "badge" : 9,
  10. "sound" : "bingbong.aiff"
  11. },
  12. "acme 1": 42
  13. }
  14. })

Loading...