Questions tagged [push-notification]

Push notifications are alerts, badges, or sounds which are pushed to a mobile device from a remote server. Apple delivers push notifications via the Apple Push Notification Service (APNS). Android devices receive push notifications via the Google Cloud Messaging (GCM) service. In the past, Android devices used the Cloud to Device Messaging (C2DM) framework. Windows Phone apps receive push notifications either via MPNS or the newer WNS.

Push notifications are alerts, badges, sounds and/or data which are pushed to a mobile device from a remote server.

  • In , push notifications are delivered via Apple's Apple Push Notification Service (), triggered by a message from developers' servers to Apple's APN servers, which in turn push the message to iOS devices. Apple first released push notifications in iOS 3.0. Push notifications should not be confused with local notifications, which are a way for an app to post a notification to a device locally, with no interaction with push notification servers. New in , you can add flags to push notifications to make them silent or to trigger a background fetch.

  • In , push notifications are delivered via Firebase Cloud Messaging (). (Previously called Google Cloud Messaging ()). This replaces Google's Android Cloud to Device Messaging Framework ().

  • Push Notifications for Windows Store apps are delivered via the Windows Push Notification Service (), which enables third-party developers to send toast, tile, badge, and raw updates from their own cloud service.

  • Push Notifications for Amazon devices running (Kindle tablets, Fire TV and Fire TV Stick) are delivered via the Amazon Device Messaging () service.

References:

19151 questions
77
votes
11 answers

Why do I get "MismatchSenderId" from GCM server side?

I'm trying to create a push service for my Android app, and I follow Google GCM's documentation and example for this matter: I can register/unregister my Android app. From my server side, I can see that I have one subscription registered, but when I…
Vahid Hashemi
  • 5,182
  • 10
  • 58
  • 88
74
votes
9 answers

Android Push Notification (GCM), is there any Daily Limit?

Is there any daily limit for number push notifications (GCM) can be sent to a particular android application user?
Sajith Amma
  • 1,157
  • 1
  • 9
  • 13
70
votes
11 answers

Android Color Notification Icon

I'm working on an app where I create a notification for the user. I want the icon to appear as white when it's in the status bar, but colored blue when it's being displayed in the drop down notification menu. Here's an example of the same thing…
Oblivionkey3
  • 1,752
  • 2
  • 17
  • 25
70
votes
3 answers

How to debug app when launch by push notification in Xcode

I am using Xcode 5. I am working with push notifications in iOS. I am getting satisfying results for background mode and foreground mode that can be debugged easily on an iOS device. But problem is when app is in closed state and launched by push…
dk-obl
  • 751
  • 1
  • 5
  • 8
67
votes
3 answers

What are different types of notifications in iOS and how to configure them correctly?

When I read Apple Docs, they mention 3 types of notification: local, remote, and silent. Local notification can be inferred from its name, that is sent by the app locally. However, what is the difference between the other two types?
66
votes
2 answers

Send desktop notifications in Chrome or Firefox from a closed web app?

My goal is to send Gmail-style desktop notifications in Chrome or Firefox from a web app (let's call it X) that is NOT currently open in the browser, without requiring the user to install an app or extension. It's okay if the user needs to grant…
65
votes
3 answers

xcode 8 push notification capabilities and entitlements file setting

when using xcode 8 doing the push notification setting, unlike xcode 7, xcode 8 need developer turn on push notifications capabilities switch ( located at TARGETS -> AppName -> Capabilities as following pic ), then it will generate…
64
votes
1 answer

Push Notifications or Socket.io?, or Both?

I'm developing a chat system for web, Android and iOS. Doing my research I've found differences on how GCM and APNS handle the Push Notifications. If I send a Push Notification to a Android Device through the GCM, the device its able to decide if it…
63
votes
1 answer

Push notifications (GCM) permission at runtime?

I have read that it is necessary to ask the user for some permissions at runtime for API 23 and up. For example: android.permission.ACCESS_FINE_LOCATION. Is it necessary (or even possible) to ask for a runtime permission for using GCM/push…
63
votes
6 answers

How to use Push Notifications in Xamarin Forms

I have an app using Xamarin.Forms targeting IOS, Android and WP 8. I need push notification feature in my app. I have seen the pushsharp demos and it seems promising. But all the code I have seen is done separately for each platform. I would like it…
Rohit Vipin Mathews
  • 11,629
  • 15
  • 57
  • 112
62
votes
3 answers

In what period does the firebase's app token changes and how to manage it?

I am new to firebase I am learning it like a toddler learning to walk. So far I have managed to send a message to my own phone using a token generated for my phone by firebase framework. Now here's where it gets tricky (in my opinion). There is a…
roostaamir
  • 1,928
  • 5
  • 24
  • 51
58
votes
5 answers

how to display image in ios push notification?

iOS 10 introduced push notification framework updates, UserNotificationsUI.framework As written on apple docs, it lets us customize the appearance of local and remote notifications when they appear on the user’s device. So if anyone have idea how…
58
votes
2 answers

iOS APNS Development [sandbox] vs Production

Guys I'm having some trouble figuring out the key differences between the APNS (push notification) Developer (Sandbox) and Production modes. In particular I have the following questions: 1) Can I launch an app on the app-store with Push…
57
votes
6 answers

Flutter: Push notifications even if the app is closed

I have built an application with flutter that works like a reminder. How can I display notifications to the user even though the app is closed?
57
votes
7 answers

Swift read userInfo of remote notification

I implemented a function to open an AlertView when I receive a remote notification like this: func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]){ var notifiAlert = UIAlertView() …
0x52
  • 883
  • 1
  • 11
  • 17