FAQ Database Discussion Community


Change State when User Selects Notification from iOS Notification Center in Cordova

ios,cordova,apple-push-notifications,phonegap-pushplugin
I'm attempting to open an iOS/Ionic/Cordova app at a specific message/state (given an ID), when a user clicks on a message push notification in the notification center. Is there a way to tell, using Cordova, if the app has been opened through the notification center?

Show uiviewcontroller from remote notification when app is quited

ios,iphone,swift,apple-push-notifications
I'm trying to show a specific viewcontroller when I receive a remote push notification. I've added all of my code into the method didReceiveRemoteNotification: func application(application: UIApplication, didReceiveRemoteNotification userinfo: [NSObject: AnyObject]) I've added following code: func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) { let code = (userInfo["aps"] as! [String:...

How to manage badge counter for push notification from QuickBlox?

ios,apple-push-notifications,quickblox,badge
I'm using QuickBlox iOS SDK to have chat functionality into my app. It works great. Now there's a requirement from client to manage badge counter for each of the push notifications. There's some scenarios which may help you to suggest me the flow to handle badge counter: Currently, a user...

Push Notification in PHP using PEM file

php,ios,openssl,apple-push-notifications
I've been working through Ray Wenderlich's tutorials on push notifications using a PHP Script. Reference: http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1 http://www.raywenderlich.com/32963/apple-push-notification-services-in-ios-6-tutorial-part-2 I have done a ton of research but I have ran into an issue on part 2 where you run the push.php file using the ck.pem file. /Applications/XAMPP/bin/php push.php development My only difference...

iOS Push Notifications Localization

ios,localization,push-notification,apple-push-notifications,nslocalizedstring
I would like to know what is the default behaviour of silent push notifications when the app is on foreground. Will it still display an alert view or not? When localising the alert message : "alert" : { "body" : "Start the game Jenna" "loc-key" : "start.game", "loc-args" : [...

iOS push notification action in background [closed]

ios,objective-c,apple-push-notifications
I have a problem with push notification. I want to call some method when someone taps on a notification. When the app isn't running it's simple (application:didFinishLaunchWithOptions call method). But when the app is running in the background, I have to call method after tap, not after receive notification (didReceiveRemoteNotification)....

In-House iOS App Distribution - kind of APNS certificate?

ios,push-notification,apple-push-notifications,in-house-distribution
Which kind of APNS certificate should we use for In-House App Distribution? Sandbox or production certificate? And is there an official documentation for that?

Regenerate iOS system alert for push notification permission AFTER app has been deleted and reinstalled

ios,push-notification,apple-push-notifications
I am wondering about the system alert that is displayed before the device token is requested from an APNS server, to ask the user for permission that this app should receive push notifications. I know it's not possible to regenerate this alert once it appeared for the first time and...

Apple Multiple Push Notifications not visible in Notifications Tray

ios,push-notification,apple-push-notifications,apns-php
I basically want to make multiple push notifications in the same application visible in the notification tray in iOS. This scenario works if my data is on while push notification is triggered via APNS, but only the latest one is received in case I am offline and come back after...

Save data from ios push notification if app is not running(Parse)

ios,swift,parse.com,push-notification,apple-push-notifications
I am using parse push notification service. If my app is running , I get the data from my notification in the following delegate function. func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) { PFPush.handlePush(userInfo) println(userInfo) if application.applicationState == UIApplicationState.Inactive { } } But in case if my app is...

How to get the text/time of the notification pushed from Parse?

ios,iphone,xcode,apple-push-notifications
I push notifications to my own app from Parse, and my app can receive the notifications well. What I’m trying to do now is to get the notification text/message, and the time when the notification arrives. I try to implement a notification history for my app (similar to Notification Center)....

Asking user to allow push notifications after the sign up process

ios,parse.com,apple-push-notifications
During the sign up process for my app I ask to allow push notifications, they press a "Allow Push notifications" button then I present the default prompt to allow push notifications. The problem with this is that I am using parse.com as a backend and it requires me to save...

Push notification delivers from local env, but not from server

ios,push-notification,apple-push-notifications,pem,csr
I'm trying to get my server to deliver push notifications via Apple's Push Notification service. (APNs) My setup is as follows: Cordova HTML/JS app API in Rails on VPS via https Houston gem for Push Notifications I've created a certificate for development on my mac. When I run my server...

CloudKit Push Notification, App running on background

ios8,apple-push-notifications,cloudkit,ios8.2
When iOS8.2-app is running in the background, it does not receive any push notification, while if it is running on the foreground, it receives the push notifications fine. Any idea what is going on ? Running on CloudKit Development mode, the subscription is for add,edit,and remove, and using the following...

My iOS Application doesn't show in Settings/Notification Center

ios,apple-push-notifications
Problem: I have Iphone 6s 64GB, running iOS 8.3, and my app doesn't show in the notification center. I tried all previous suggestions of deleting the apps, turn phone off, then on, wait 5 minutes, reinstall app thru Xcode, launch the app again, and still my app does not show...

I deleted 'Apple Development IOS Push Services' from the keychain > login, how do I add it back

apple-push-notifications,keychain
My Push Notifications certificate expired and so I was trying to remember how to generate a new one. In the process I completely deleted the Keychain section entitled : Apple Development IOS Push Services and Apple Distribution IOS Push Services If you look at the screen shot you will not...

Are iPhone's apps notifications going to be triggered on the Apple Watch by default, without even creating an actual Watch app?

ios,apple-push-notifications,watchkit,apple-watch
I would like to support my iPhone's app Local Notifications in the Apple Watch from the very first moment the Watch is released, but I don't plan on building a Watch App yet. From what I researched, it seems like iPhone's notifications will be automatically supported on the Watch, without...

iOS Send Push Notification to a device WITHOUT an application?

ios,push-notification,apple-push-notifications
Is it possible to send Push Notification to a device, without installing a specific app that would be receving it? I know how to send a regular push notification, but I always need to install my app to receive them. I was wondering if there is any way to do...

iOS 8 push notification action buttons - code in handleActionWithIdentifier does not always run when app is in background

ios,objective-c,ios8,apple-push-notifications
I am adding two action buttons to my push notifications on iOS 8: an Accept button and a Deny button. Neither button will open the app, but different server requests will be made depending on which button is pressed. Here's my setup: + (void)requestForPushNotificationToken { UIApplication *application = [UIApplication sharedApplication];...

While queueing notifications with PushSharp nothing happens at all

c#,ios,apple-push-notifications,pushsharp
I tried to send Apple push notification with PushSharp library like that: public class Push { private readonly PushBroker _push; private static Push _instance; public static Push Instance { get { return _instance ?? (_instance = new Push()); } } public Push() { _push = new PushBroker(); _push.OnNotificationSent += new...

iOS Push Notification Settings - Denied Permission vs Permission Never Requested

ios,push-notification,apple-push-notifications
Is it possible to differentiate between the cases where an iOS user has explicitly denied user notification permissions, and an iOS user has never been prompted for permission? My situation: In the past, I've prompted for user notification permission, but never kept track of requests myself. Later, I stopped attempting...

Custom sound remote push notification iOS not working

ios,swift,apple-push-notifications
I'm trying to change the sound of the remote message I've added the file into my project, see picture 1 I've also added everything into my AppDelegate. In the didFinishLaunchingWithOptions I've added: if (UIDevice.currentDevice().systemVersion as NSString).floatValue >= 8.0 { UIApplication.sharedApplication().registerUserNotificationSettings(UIUserNotificationSettings(forTypes: .Sound | .Alert | .Badge, categories: nil)) UIApplication.sharedApplication().registerForRemoteNotifications() } else...

Can Production Push notifications be solved without resubmitting app?

ios,push-notification,apple-push-notifications
Basically, I'm having a PEM certificate issue on my back-end right now, which means my Push Notifications aren't working for production. I'm thinking of going through the process again in my developer.apple.com portal. Would I be able to fix it by redoing the process in there and just toying there...

Can't get launchOptions data from didFinishLaunchingWithOptions function

ios,swift,apple-push-notifications
My app needs to get some data from Remotenotification in order to push first page to the specific page like FACEBOOK app but now I can't get launchOptions data from didFinishLaunchingWithOptions function it always show: Cannot invoke 'objectForKey' with an argument list of type '(String)'. func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions:...

'Title' property in Quickblox' APNs payload

ios,apple-push-notifications,quickblox
It seems like QB doesn't support 'title' sub-field of 'alert' field inside remote notification payload. 'title' sub-field is used to show notification summary on AppleWatch 'Short-Look' interface (not sure if Watch' OS use 'alert' field's content if title field not specified). Is it possible to add this field or maybe...

Node push notification repeatly ask for password

node.js,apple-push-notifications
I am using node-apn to send push notification to Apple devices, and I've made it a standalone server so that it receives message from the outside source. However when the server start it doesn't ask for password. It asks for password when the first message from the outside source comes...

Cordova Custom iOS / Android sounds when app is close or in background

cordova,apple-push-notifications,android-gcm
I'm trying to implement a custom push notification sound through GCM and APNS using my Cordova/PhoneGap app. On APNS, I've managed to get the proper beep file name using the PushPlugin. However, I have no idea how to make that sound play when the app is in the background or...

Apple Push Notification Service and certificates, how does it work?

ios,apple-push-notifications,code-signing-certificate
I am confused as to how APNS Certificates work. I have one paid Apple Developer account that I use. I downloaded the APN Tester which basically sends out a test notification using the APNS certificate I created. And works perfectly fine on one computer. But then I exported my Developer...

iOS App not registering for push notifications

ios8,push-notification,apple-push-notifications
I am trying to register for push notifications in my iOS app. But it is calling neither the didRegisterForRemoteNotificationsWithDeviceToken nor didFailToRegisterForRemoteNotificationsWithError callback methods. I have revoked and regenerated the provisioning profile for the app. I am using iOS8 and I have enabled the following background modes in my Info.plist App...

Quickblox 'automatic push notifications for offline user' not working

ios,apple-push-notifications,quickblox
I have following scenario. User A sends message to User B in foreground -- this is working Send push notification to User B, when app is in background, from 'Messages' console -- this is working I want to send notification alert to User B when app is in background. I...

Apple developer push notifications APN certificate revoked due to overuse(banned by Apple)?

ios,push-notification,apple-push-notifications
I recently started using Apples APN for push notifications. I have all the certificates and the keys correct, and right now im using the developer sandbox platform. Everything was working perfectly, but due to a mistake in one of my scripts, there was a stream of many(around 1 request per...

How to handle push notification when app is in background but not suspended

ios,apple-push-notifications
My app receiving push notification, and showing appropriate info message for that. However when I'm clicking to the message, application becomes active but application didFinishLaunchingWithOptions is not getting called which is right i think, since the application is not suspended and it just resigns active. The question is how i...

How to find out the Icon Badge count?

ios,push-notification,apple-push-notifications,badge
I'm using push notifications on my iOS app and everything is working great. The icon badge is working and when I open the app I clear it with this code: [[UIApplication sharedApplication] setApplicationIconBadgeNumber: 0]; But before clearing it I would like to find out what is the badge count to...

Silent Notification Issues without Xcode on iOS 8 Devices

ios,xcode,apple-push-notifications
I've been testing out the Silent Notification feature that is available since iOS 7. My application is targeting iOS 7 and UP. I'm testing on an iPhone6 device. Everything seems to work great in my application when my iPhone is connected to the computer & Xcode is running the application....

APNS+PHP - Fails to deliver message for more than about 200 tokens

php,apple-push-notifications
I can send notifications to APNS for about first 200 device tokens in my database but after those the message get failed, Here is part of my log from my local server where the infliction occurs : Processing #234: 153668daa0685d2cb988b6f4a1b5cc0d83ee52772.....<br>Message successfully delivered <br> Processing #235: 9d9bbce1335de97fe06c4e82000008fad1b88337e.....<br>Message successfully delivered <br> Processing...

How to send silent push to iOS via Google Cloud Messaging

ios,apple-push-notifications,push,google-cloud-messaging
How to send silent push notification to iOS application over GCM? Silent push is notification that will not appear in notification center, but awake application to do some action in background. Google introduce new features in new GCM with possibility to send push messages to Android, Chrome and iOS. Any...

How to receive APNS for some actions and for some not

ios,push-notification,apple-push-notifications
In some apps like QuizUp, there is a section in Settings (in the app), Push Notifications and the user can tell if he wants to receive APNS for, lets say new friend request, but to turn off for new challenge. How can I achieve that within the app?

ios - Ask for multiple permissions

ios,objective-c,apple-push-notifications
My application ask for location and notification permissions. When user launch the app for first time the location request displays and after notification request displays. Is there any way to request this better? Maybe an a list like in Android or anything better than I have right now?...

Push notification is not receiving very first time

ios,node.js,push-notification,apple-push-notifications
I am sending push notification from the node server to iPhone and Android. It was successfully sent to the APNS/GCM and successfully receiving the notifications to the mobile devices. But, in iPhone 6, push notification is not receiving very first time after that it's receiving notification. It's happening in following...

What causes APNS token to change?

ios,apple-push-notifications,token
Is there a difference between token lifetime on sandbox vs production? I am locked into using a sandbox environment at the moment and am wondering what is causing my token to expire/reset. I am not uninstalling the app nor updating the iOS version between apparent token expirations. I do force...

Urban Airship / Parse vs rolling out your own solution for push notifications

push-notification,apple-push-notifications,android-gcm
What are the pros/cons of using UA/Parse vs your own solution. I'm not trying to set off a comparison, what I'd like to know is what benefit would you have in using their services (which costs money) vs rolling out your own solution with the various APIs (which costs nothing...

How to transfer user from Apple Watch Notification to Apple Watch App?

ios,push-notification,apple-push-notifications,watchkit,apple-watch
When a Push Notification is displayed on the Apple Watch, the only possibility to open the Apple Watch App is to tap the App icon in the upper left corner. Now, as I´m reviewing our tracking data, no user seems to know this. How can I install another tap area...

badge doesn't get set in iOS 8

ios,objective-c,ios8,apple-push-notifications
Trying to set the badge number via a remote notification with this code UIUserNotificationType types = (UIUserNotificationTypeAlert| UIUserNotificationTypeSound| UIUserNotificationTypeBadge); UIUserNotificationSettings *settings; settings = [UIUserNotificationSettings settingsForTypes:types categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:settings]; -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo{ [application...

EJB: Socket connection pooling

java,sockets,jboss,apple-push-notifications
I would like to connect from JBoss AS 6 to Apple Push Notification server using socket. My problem is that Apple recommends to use the same socket for sending messages (or a pool of sockets). It prevents the DDOS like thing when I send too much messages and blocking my...

Apple push notifications service for server

ios,apple-push-notifications
I want to use apple push notification service in my server. But someone said you have to use certificate in your server. I researched the internet and I have found tutorials but nobody says the certificate source. I am already using certificate in my app for push service but where...

will push notifications with Production-SSL certificate work when I'm still testing my app? How can I know it will work?

ios,apple-push-notifications
My push notifications are working fine with the sandbox model. I just verified that the production ssl certificate is working both with direct SSL-connection and with AWS SNS. However, my device is still producing the same push token as it produced for the sandbox, and this token is not working...

How do I run my iOS app (Xcode 6) with the aps-environment set to “production”?

ios,objective-c,xcode,apple-push-notifications,amazon-sns
I'm developing an app with Xcode 6 and I want to test production push notifications but I can't seem to run my app with a production aps-environment. How can I manually enable this for testing purposes? I've already registered my app through Apple Developer with both development and production push...

ios show/hide notification if app is killed/running

ios,apple-push-notifications
I know we cannot launch an app automatically from a push notification if the user has killed the app but if background app is killed by iOS (and not terminated by user), will iOS relaunch the app in background when a push notification is received? If iOS wont relaunch the...

iOS UILocalNotification only makes a sound (no alert) when app is not running

ios,apple-push-notifications,uilocalnotification
I'm using remote notifications to wake up my app and conditionally trigger a UILocalNotification. I've found that if this notification is triggered while the app is not running, all I get is the notification sound (no alert/notification). It works as expected if the app is in the background. Registering for...

Passbook not requesting latest version after push

ios,json,apple-push-notifications,passbook
I have implemented the Passbook websevice, and can successfully push to APNs; But I have a problem with the Passbook not requesting the latest version of the pass. When I push a new notification to a given device, the device gets it and Passbook sends a request the my web...

Device Token not received when registering for remote notifications in Swift

ios,swift,apple-push-notifications
I somehow can not receive the device token when registering for remote notifications. I get the modal saying "Do you want to allow App X to be able to send you notificaitons", but when I accept it, the didRegisterForRemoteNotifications function is not called. When I register for remote notifications in...

APN background refresh, setting up AppDelegate.m

ios,objective-c,apple-push-notifications
I want to trigger a data fetch when a push notification is received. I understand that this happens before a notification is displayed to the user. Right now I have this in my AppDelegate.m: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { if ( application.applicationState == UIApplicationStateInactive || application.applicationState == UIApplicationStateBackground )...

alert the user with remote notification only if the app open and visible?

ios,apple-push-notifications
When I send a push notification to an application, the application gets the notification whether it's opened or closed. Can I show the notification to the user ONLY if the app is both open and visible? So if the app is closed/not visible, I don't want to alert the user....

Swift dictionary, reading key values - push notifications

ios,objective-c,swift,dictionary,apple-push-notifications
I'm trying to display an alert when the user receives a push notification. I use the following code to display the alert. But I don't know how to access the alert of the push notification. func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) { var state: UIApplicationState = application.applicationState if...

sending passbook update with pushsharp

c#,apple-push-notifications,passbook,pushsharp
I'm trying to test talking to apple's push notification sandbox server. I made a certificate following this link (enabled push notification, requested certificate authority, uploaded, generated cert, export p12) I made a sample C# console application that looks like the following PushBroker push = new PushBroker(); var appleCert = File.ReadAllBytes(@"devapns.p12");...

iOS 8 registerForRemoteNotifications correct implementation placing

ios,objective-c,apple-push-notifications,uilocalnotification
I've seen a ton of different notifications permission request implementations and I still don't know which one is best. This might be a duplicate but I want a 2015 answer that should encase the latest Apple recommendations. My general question is whether to put the registerForRemoteNotifications call immediately before the...

Pull notifications from web server to iOS device when app is backgrounded

ios,background,apple-push-notifications
I would like to be able to make location and app state requests when the app is in the background. I know that you can have different background modes registered for the app. Is it possible for my web server to send a push notification to an iOS device and...

Not receiving Push Notification in Sleep Mode

ios,apple-push-notifications,background-process,sleep-mode
Want: I want to be able to trigger a http request on receipt of a push notification(Silent) while the application is in the background(Includes while the phone is in sleep mode). Assumption: Push Notifications wake up application that is running in the background(Even while in sleep) https://discussions.apple.com/thread/3650066 : Offers a...

Apple Push Notification setting up Remote Notifications method overrides other methods

ios,apple-push-notifications
I have properly set up my app for Remote Notifications with the method func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject], fetchCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void) and it processes it correctly now every time the app receives an Apple Push Notification. But my issue is that this method is being...

node-apn logs is not getting stored in file

node.js,logging,apple-push-notifications
I need to debug the node-apn (some pushes are getting lost), so i need to analyze node-apn logs. Therefore, i want to store node-apn logs in a file. What i have tried I have enabled the node-apn logs and they are appearing on my console. Now, i am running following...

Swift didReceiveRemoteNotification - Navigate to rootviewcontroller no matter where in app user is located (Now With Error Message)

ios,swift,uinavigationcontroller,apple-push-notifications,rootview
Upon receiving push notification in the IOS Swift app, I would like to do two things based on content in notification: Either navigate to screen (deeplink) so i would have to navigate from rootviewcontroller through several screens. Navigate to rootviewcontroller, no matter where the user is located in the app....

Not able to strip password from private key

ios,osx,openssl,apple-push-notifications,mdm
I am following this blog to create a mdm server link. In the 7th step they are stripping password from the private key by running this command openssl rsa -in key.pem -out private.key But when I run this command on my terminal I am getting error unable to load Private...

APNS: Screen blinks but no text is shown

ios,iphone,apple-push-notifications
The problem Some APNS push notifications that I am sending from a server contain alert and sound, but they only cause the iPhone screen to blink momentarily, while no text is shown in the notifications section. Context Python and PyAPNS on the server side Verified multiple times on iPhone 6,...

Apple Watch notification center

apple-push-notifications,apple,watchkit,apple-watch
What is that notification's in the notification center called? Is it just notifications? How to view it: After a notification shows up: ignore the notification, go to the watch home screen, go to the clock app screen, drag from the top to the bottom of the screen to see the...

iOS push notifications doesn't work if “aps” informed in JSON

ios,json,notifications,push-notification,apple-push-notifications
If I've my app closed and I send a push notification like this: { "alert" : "Hello, world!", "sound" : "default" } My app receives push notification correctly. But if I send this: { "aps" : { "alert" : "Hello, world!", "sound" : "default" } } My app never show...

Launch app in background automatically?

ios,background,apple-push-notifications
Is there a way to persist an iOS app in the background such that it starts up automatically when the device is turned on and will re-launch later if terminated? I have read a few posts on either voip and gps services. My app sends emergency SMS messages with the...

Parse Push with only deviceToken

parse.com,push-notification,apple-push-notifications
What is the minimum number of steps I have to take to send a push notification? I am already getting the deviceToken natively through iOS, do I have to create an Installation object through Parse? I would rather not change any native code right now. Can I do something like...

iOS Local Notification - Action on Click

ios,objective-c,swift,apple-push-notifications
So I have managed to set up local notification in my app by doing so. NSDate *notifTime = [[NSDate date] dateByAddingTimeInterval:time]; UIApplication *app = [UIApplication sharedApplication]; UILocalNotification *notif = [[UILocalNotification alloc] init]; if (notif) { notif.fireDate = notifTime; notif.timeZone = [NSTimeZone defaultTimeZone]; notif.repeatInterval = 0; notif.alertTitle = title; notif.alertBody =...

iOS - Push Notification with Sound only

ios,push-notification,apple-push-notifications
When I get a push notification while my application is not active or closed, my device plays a notification sound. When my application is active or open, it does not play a sound on receiving a notification / message. I want the notification sound to play even when the application...

A call to SSPI failed - The certificate is revoked

c#,apple-push-notifications
My application was working fine two days ago. I was able to sent the push notification completely fine on live app but suddenly i starts getting this error {System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The certificate is revoked Here is my code, where i am...

Comparison between Mobile Push Notification Services

ios,mobile,push-notification,apple-push-notifications,backend
I'm investigating the existing providers for push notification service. The goal is to simplify the backend of a mobile app and avoid to directly communicate with services like APNS or handle stuff like device tokens, etc. Interesting (desired) features: send push notifications directly from the app (without going through a...

iOS device token

ios,apple-push-notifications,devicetoken
If I accept push notification on my device, and do not save device token then how i can see device token in custom view or revert alert view ? I deleted app and reinstalled, but do not see device token alert view, and revoke permissions, but no see alert view...

Push notification, is it the device token all we need, or more?

ios,apple-push-notifications
I'm reading over this previous thread because I was having a problem converting the device token to something I could send in a POST. That problem is solved, and my token is being sent properly to the server, which we store in a user's account record. That is all I...

Silent push message, can´t react if app is in background and unplugged

ios,iphone,ios8,push-notification,apple-push-notifications
I am trying to react on silent push messages. I registered my app for the two background modes in my plist file. I am sending the following json to my app: { "aps": { "content-available": 1 }, "Bla": "Blub" } If my app is in foreground, everything works. As I...

APNS + PHP “stream_socket_client(): Failed to enable crypto”

php,ios,apple-push-notifications,push,apns-php
I'm having trouble with using APNS with PHP and getting the following message: stream_socket_client(): Failed to enable crypto The problem only happens sometimes, and other times it would actually send the push. Since I have the test script on a loop of 10 iterations, I would sometimes get this: stream_socket_client():...

When phone is offline GCM stores a LIST of messages or only the last one, just like APNS?

android,push-notification,apple-push-notifications,android-gcm
When phone is offline GCM stores a LIST of messages or only the last one, just like APNS? I've read a lot about it, but as the documentation says: 1. The GCM connection server enqueues and stores the message if the device is offline. 2. When the device is online,...

Azure Notification Hub Max payload length

push-notification,apple-push-notifications,azure-notificationhub
Is there any documentation where I can find how notification hub keep consistency over all platforms for payload length? I mean that: In iOS 8 and later, the maximum size allowed for a notification payload is 2 kilobytes; Apple Push Notification service refuses any notification that exceeds this limit. (Prior...

Can we send push notification payload with plain text (No JSON)?

ios,json,push-notification,apple-push-notifications,payload
I am trying to figure out if we can send push notification payload as plain text like "This is notification text" not as json {aps: {alert:"notification"}}. I know apple say in its documentation that you need to send json format payload and its also says you can add custom values....

Why is didReceiveRemoteNotification not called but didReceiveRemoteNotification:fetchCompletionHandler called when my app is in the foreground?

ios,swift,apple-push-notifications,appdelegate
If I override override func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject], fetchCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void) { println("hey) } I successfully have the method called with the app in the foreground when I send a push notification. If I override override func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject])...

iOS 8 icon badge not updating when receiving remote notification

ios,apple-push-notifications
I am developing an iOS app that uses remote notifications. All works fine but I have noticed that the icon badge doesn't show any number when a notification is received. I ask for permissions in this way in my AppDelegate: [application registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]]; [application registerForRemoteNotifications];...

push isn't working after creating new provisioning profile?

ios,push-notification,apple-push-notifications
As you know, push - certificate - profile is a mess.. I can't get my head around it.. We recently changed our provisioning profile (or developer/production certificate) and wonder if it's the reason why push isn't working. Would it affect the push functionality in any way?...

Test for Apple Push Notification

node.js,coffeescript,mongoose,apple-push-notifications
I am using node.js (server framework) and mongoose.js (mongo based schema modeling) as the backend for an iOS app and I am using Mocha (test framwork) to make sure everything works. What I really want to know, and can find no documentation on, is how to test on the server...

Distinguish between distribution and development for apple push notificiations

ios,apple-push-notifications,provisioning-profile,ios-provisioning
When I start the app, it registers for push notifications and depending on the provisioning profile it will generate a different push token. Since both AdHoc and AppStore provisioning profiles connect to the same server, I have to somehow distinguish what kind of token it is, so that the server...

Custom push notification screen

ios,cocoa-touch,apple-push-notifications
I'm developing an iOS video chat application. I would like to display a notification like the FaceTime application does when someone calls me. Currently I use push notifications that show banners, with a message and a custom sound. Instead I want my app to show a custom screen for an...

How does “Yo” ios app know when the user disables push notifications?

ios,objective-c,swift,apple-push-notifications
I am developing an app that requires push notifications. I would like to detect when it is enabled by the user and when it is not. The famous "Yo" app immediately detects it when I disable push notifications from the iPhone settings ! How do they do that ?...

didRegisterForRemoteNotificationsWithDeviceToken doesn't return deviceToken

ios,parse.com,push-notification,apple-push-notifications
I am registering for push notifications through Parse this way: func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { Parse.setApplicationId("RfSGbVes0FGIX1sfxTEb3iybVsKgKPrfDuxco3vC", clientKey: "3pFBMar6vO6iUJouqTMt4VJVKZaXUc6p9RgHzTep") if application.applicationState != UIApplicationState.Background { let preBackgroundPush = !application.respondsToSelector("backgroundRefreshStatus") let oldPushHandlerOnly =...

iOS APNS Development [sandbox] vs Production

ios,objective-c,iphone,push-notification,apple-push-notifications
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 Notifications that is only registered for the APNS Developer Certificate? Or do...

A meteor package for location reporting on the background upon request send using GCM and APN

javascript,cordova,meteor,apple-push-notifications,android-gcm
The scenario: A meteor mobile app is required to report a user's location on request from server. The request arrives via GCM on Android and APN on iOS. When the request arrives the app may be on background or inactive altogether. The main challenge - how the app answers the...

Remote Push Notifications in iOS

ios,iphone,apple-push-notifications
Is there a way for the app to wake up in background when remote push notification received and prevent iOS 7/8 from displaying notification alert (similar to what can be done in Android using WakefulBroadcastReceiver and LocalBroadcastManager)? I was hopping that didReceiveRemoteNotification: fetchCompletionHandler will allow to accomplish that, but looks...

Issue in converting p12 file to pem file

ios,push-notification,apple-push-notifications
I'm following this tutorial for push notifications. I'd done all the steps in that page. i'd created p12 file and cer file and i converted cer file to pem successfully. But, while converting p12 file to pem file it's asking for Enter Import Password, Which password should I enter there?...

Swift Parse Push advanced targeting not sending

ios,swift,parse.com,apple-push-notifications
Followed the documentation for Parse advanced targeting and push notifications are still not sending. (I can receive pushes from Parse's console and client push is enabled.) let userQuery: PFQuery = PFUser.query()! userQuery.whereKey("objectId", equalTo: "JrePAMWUbm") // The user I am logged in with let pushQuery: PFQuery = PFInstallation.query()! pushQuery.whereKey("user", matchesQuery: userQuery)...

Issues with connecting with apple APNS using perl

perl,ssl,apple-push-notifications
I am using a library(Net::APNS::Persistent) that uses Net::SSLeay. This library helps to communicate with Apples APNS servers. I found if I send any bad data for example wrong token or poorly formatted payload, the program terminates after three tries. And it shows no error message. As per my debugging this...

Payload for the Watch App Notification

ios,apple-push-notifications,watchkit
When creating a new Apple Watch App in Xcode, the following APNS payload example is created: { "aps": { "alert": { "body": "Test message", "title": "Optional title" }, "category": "myCategory" }, "WatchKit Simulator Actions": [ { "title": "First Button", "identifier": "firstButtonAction" } ], "customKey": "Use this file to define a...

iOS Notification Center Registration

ios,objective-c,notifications,uikit,apple-push-notifications
I want to make a game that tests out local notifications. In iOS 8, the code involves these steps: Make a UIMutableUserNotificationCategory object that is the category of custom actions you want to implement. Make up to 4 custom actions by using UIMutableUserNotificationAction instances. Call setActions:forContext: to set up custom...

Push notification showing before background refresh finished (using Push with background refresh)

ios,objective-c,apple-push-notifications
I am trying to set up my app so when a push is received it first fetches the new messages before showing the push notification. In my push notification I have content-available = 1 set and also the switches enabled in the Plist. I have implemented: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary...

Using Sandbox servers with apns

python,ios,apple-push-notifications
What is the difference between using Apple's sandbox servers or not with push notifications? For example: apns = APNs(use_sandbox=True, cert_file='cert.pem', key_file='key.pem') vs. apns = APNs(use_sandbox=False, cert_file='cert.pem', key_file='key.pem') Why would someone care if they are using Apple's sandbox servers or not? Is there an actual reason why it should be used...

Custom iOS Push with node-pushserver

node.js,push-notification,apple-push-notifications
I'm trying to insert a custom iOS push notification using node-pushserver lib... The format that I want is: "aps": { "alert": "joetheman", "sound": "default" }, "message": "Some custom message for your app", "id": 1234 The format that I have: "ios": { "badge": 0, "alert": message.message, "sound": "soundName" } How can...

How to open new WebView for IOS Push notification using swift

ios,swift,apple-push-notifications,wkwebview
I am Developing IOS Hybrid app in which i have developed IOS push notification and after click on notification, link should open in webView but this is not happing so please help me to handle this situation