Questions tagged [apple-push-notifications]

The Apple Push Notification Service is a service created by Apple Inc. that was launched together with iOS 3.0.APNS is used together with Mac OS X Lion Server to push update notifications to clients that have registered to receive updates via a configuration profile and are also using the server's mail, calendar and contacts services. This means that devices such as the iPhone and applications like iCal on the Mac can receive a notification

The Apple Push Notification Service (APNS) is a service created by Apple Inc.

It is the centerpiece of the remote notifications feature, and was launched together with iOS 3.0 on June 17, 2009. APNS is used to send notifications to applications on Apple devices (iOS, tvOS, macOS, watchOS) that have registered to receive those notifications.

Apple push notification service is a cloud service which allows to send notifications from any back-end server to an API provided by Apple. Apple has recently introduced an HTTP/2 API to send the push notifications which is the recommended way from Apple.

Third-party service providers offer a higher level interface to Apple API, making it easier to handle notification for a large number of registered devices.

Official Apple Push Notification Documentation

7708 questions
469
votes
13 answers

This certificate has an invalid issuer Apple Push Services

I have created certificate to enable Push Services in my app, but every time I try to add certificate in my Keychain, after adding certificate it shows me following error: This certificate has an invalid issuer
Aamir
  • 13,234
  • 9
  • 51
  • 63
300
votes
7 answers

Generate .pem file used to set up Apple Push Notifications

I tried and tried to generate a .pem file, every time generating certificates from the client's account and then generating the .pem file using the terminal, but it's of no use. Can anyone give a step-by-step procedure?
Harsh Parikh
  • 3,773
  • 3
  • 11
  • 14
223
votes
7 answers

Will iOS launch my app into the background if it was force-quit by the user?

I am triggering a background fetch by using the content-available flag on a push notification. I have the fetch and remote-notification UIBackgroundModes enabled. Here is the implementation I am using in my AppDelegate.m: -…
Andrew
  • 15,074
  • 6
  • 61
  • 100
209
votes
15 answers

registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later

When trying to register for push notifications under iOS 8.x: application.registerForRemoteNotificationTypes(UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge | UIRemoteNotificationType.Sound) I get the following…
Wojtek Turowicz
  • 3,978
  • 2
  • 23
  • 35
207
votes
19 answers

Determine on iPhone if user has enabled push notifications

I'm looking for a way to determine if the user has, via settings, enabled or disabled their push notifications for my application.
Kevin
  • 3,500
  • 4
  • 26
  • 33
185
votes
11 answers

Creating .pem file for APNS?

How do I create a .pem file to be stored in the hosting server for APN payload data?
Biranchi
  • 15,173
  • 20
  • 115
  • 154
180
votes
28 answers

Detect if the app was launched/opened from a push notification

Is it possible to know if the app was launched/opened from a push notification? I guess the launching event can be caught here: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { if…
169
votes
30 answers

How can I convert my device token (NSData) into an NSString?

I am implementing push notifications. I'd like to save my APNS Token as a String. - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)newDeviceToken { NSString *tokenString = [NSString…
Sheehan Alam
  • 57,155
  • 123
  • 348
  • 546
155
votes
24 answers

How to fix "no valid 'aps-environment' entitlement string found for application" in Xcode 4.3?

I've been trying very very hard to create a simple simple iOS app which can recieve push notifications. My only reason for doing this is to establish a procedure for some other team members to use, and have not been able to find an up to date,…
jwl
  • 10,418
  • 13
  • 48
  • 86
134
votes
18 answers

Missing Push Notification Entitlement

I have an app for submission when it got rejected and I got the message Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the…
mirageservo
  • 2,203
  • 4
  • 20
  • 29
133
votes
6 answers

Renew Push certificate and keep current App Store App working

I have an app on app store, which is using an iOS Provisioning Profile (Distribution) which is expired. This Profile contains Push Certificate that's also expired (and does not appear anymore in the portal). Question 1: Is there a way to recreate…
Franck
  • 7,377
  • 8
  • 36
  • 53
129
votes
10 answers

Displaying a stock iOS notification banner when your app is open and in the foreground?

When Apple's official iOS Messages app is open and in the foreground, new messages from other contacts trigger a stock, native iOS notification alert banner. See image below. Is this possible in 3rd party apps on the App Store? Local and/or Push…
pkamb
  • 26,648
  • 20
  • 124
  • 157
128
votes
13 answers

iOS push notification: how to detect if the user tapped on notification when the app is in background?

There are a lot of stackoverflow threads regarding this topic, but I still didn't find a good solution. If the app is not in the background, I can check launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey] in…
Bao Lei
  • 3,195
  • 3
  • 17
  • 15
124
votes
11 answers

How can a web application send push notifications to iOS devices?

I'm working on a web app. How can I send push notifications to iOS users when there is new content?
Frankie
  • 1,249
  • 2
  • 9
  • 5
122
votes
11 answers

Xcode 8 "the aps-environment entitlement is missing from the app's signature" on submit

I've got an app that we've submitted dozends of versions to in the last 6 months and we do use APNS. I got the following email from Apple after upgrading to Xcode 8 Dear developer, We have discovered one or more issues with your recent delivery…
1
2 3
99 100