apple-push-notifications

MQTT Service for iOS Push Notifications

狂风中的少年 提交于 2019-12-06 06:38:16
The low reliability of GCM on Android is such that I have moved to another service to handle push messages: Pushy, ( https://pushy.me/ ) The service relies on MQTT, and from my experience as well as many other reviews, the real time feature-set holds up to its name and rarely does a message get dropped. However, contacting support, they noted that there is no iOS integration and only support Android. I have searched widely but have not found a suitable replacement for iOS that supports MQTT out of the box. Is there such a service available to allow for more dependable push messages? The

Stuck creating p12 file for MoonAPNS

岁酱吖の 提交于 2019-12-06 06:34:35
I am having some trouble creating my .p12 certificate. I have previously created an application with push notification, this works fine. The application takes the users device id and saves it into a database. I have added the code into my new application(with the amendments to work with the new application), and from the Log it seems to be working in the same way as my other app. I have downloaded the relevant files that i need and then i know i needed to use ssl to be able to create my new and combined p12. I cant for the life of me remember how i created the p.12 file. I'm using moonapns. I

Sending Device Token Safely for APNs

旧巷老猫 提交于 2019-12-06 06:04:39
问题 For iOS applications that require push notifications, it must first request the user for permission to do so. After that, a device token is generated and with this, the remote server may communicate to the user through this token. I have read a similar question here and I do not feel it is enough. The picture below is a trusted certificate, it allows me to view all traffic that happens on this device. With Fiddler2 as well as CertMaker, I can sniff HTTPS traffic, which means the client can

bold (or other formatting) in iOS push notification

▼魔方 西西 提交于 2019-12-06 05:54:27
问题 The built-in Messages app makes message-senders' names in push notifications bold . Is it possible to do this for my app? What would such a payload look like? If it's relevant, I'm testing using the Mac app APN Tester to send a push to my iPhone, with this type of payload {"aps": {"alert": "hey bob", "badge": 2}} . (I tried asterisks *text* and HTML tags <b>text</b> but they don't do anything. I can't seem to find documentation on it, either.) 回答1: There is no rich text functionality in iOS

didRegisterForRemoteNotificationsWithDeviceToken - Push Notifications

大憨熊 提交于 2019-12-06 05:54:10
问题 I just wanted to confirm "didRegisterForRemoteNotificationsWithDeviceToken" is meant to be called everytime the application loads and my PHP server or application needs to deal with whether or not to resubmit to store in my database? Or is there something I am missing? Thanks James 回答1: First, you are not meant to call this method directly. Rather, you should call registerForRemoteNotificationTypes: on every launch of your app which then in turn calls application

Extract “alert” text from push notification

与世无争的帅哥 提交于 2019-12-06 05:47:39
I have the following code placed in my app delegate file. In theory, it should be extracting the message from the push notification and displaying it in a UIAlertview - yet it displays the title and the candle button, and nothing else. Can anybody see where I am going wrong? - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { [PFPush handlePush:userInfo]; pushText = [userInfo objectForKey:@"alert"]; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"News", "") message:pushText delegate:nil cancelButtonTitle:@"Ok"

Apple Push Notification in Erlang (or improved in Ruby?)

让人想犯罪 __ 提交于 2019-12-06 05:44:48
问题 I currently have an Apple Push Notification running on my server in Ruby. I'd like to get one going in Erlang as I'd like to use a supervisor to keep watch over it. Does anyone have any code that they could help me with? Here's my Ruby code. One thing I do not like about this current implementation is that it does not seem to stay connected - it disconnects 2-3 times a day, and it seems after I reconnect that the first push will not go through: context = OpenSSL::SSL::SSLContext.new context

Use of silent APNS push notifications to send token without user notification?

旧巷老猫 提交于 2019-12-06 05:06:49
I've checked through other questions and responses here at StackOverflow but couldn't see something exactly like this; I would like to be able to push a token via APNS. The purpose of this is to verify that a subsequent user request to a restful web service comes from an iPhone device and not from a non-iPhone source (it's trivial to change HTTP headers to fake looking like an iPhone request). Couple of questions: Is it permissible under Apple Guidelines to insist that push notifications be enabled ? Is it possible to send a SILENT push notification carrying some small text payload? Does

How can I handle unread push notifications in iOS?

点点圈 提交于 2019-12-06 03:46:02
问题 I have a iOS 5.1 application that registers to the APNS service to receive notifications. The register is successful and I receive the notifications correctly. The problem comes when I try to handle the notifications. Once the application is running, the method didReceiveRemoteNotification in the AppDelegate is called correctly and so the notification is handled as intended. This, however, only happens when the application is running on the foreground. However, when the application is running

How to use custom Navigationcontroller in AppDelegate by using a Storyboard

心不动则不痛 提交于 2019-12-06 03:31:34
问题 I've got a problem concerning Navigationcontroller in AppDelegate. I'm using a storyboard, which looks like this: As a result of using Push notifications, i've got the following function in my AppDelegate File: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { //... } When the notification arrives I want to initialize the "Detail View" - Controller which needs an ID as a parameter. This ID is part of my payload so it is present in