apple-push-notifications

APNS ssl://gateway.sandbox.push.apple.com:2195 connection fails

有些话、适合烂在心里 提交于 2019-11-27 05:44:00
问题 i try to make a push-notification server. I get connection to ssl://gateway.sandbox.push.apple.com:2195 with telnet. telnet gateway.sandbox.push.apple.com 2195 Trying 17.172.232.229... Connected to gateway.sandbox.push-apple.com.akadns.net. Escape character is '^]'. my *.pem is ok (I use it on another server). I use the SAME project on an other Server and it works there but the clone on an other Server doesn't. I get these Errors: Warning: stream_socket_client() [function.stream-socket-client

Not receiving any push notification in iPhone

我们两清 提交于 2019-11-27 05:40:29
问题 I have made a sample PushTest app for Push Notification using this tutorial. And using above tutorial I got the message that 'PushTest' would like to send you Push Notification (exactly once) and after that I delete the app from iPhone, restart the iPhone but unable to get the same message again. I have run the script sample.php (updating the changes suggested) and got the message 'connected to APNS' & 'your message send'. But I didn't receive any single push notification. Please guide me

iOS- How to integrate push notification in iOS 10?

不想你离开。 提交于 2019-11-27 05:23:11
问题 I have used following code for iOS 8,9 as: UIMutableUserNotificationAction *action1; action1 = [[UIMutableUserNotificationAction alloc] init]; [action1 setActivationMode:UIUserNotificationActivationModeBackground]; [action1 setTitle:@"REJECT"]; [action1 setIdentifier:NotificationActionOneIdent]; [action1 setDestructive:NO]; [action1 setAuthenticationRequired:NO]; UIMutableUserNotificationAction *action2; action2 = [[UIMutableUserNotificationAction alloc] init]; [action2 setActivationMode

Objective-C - Detect when user change the app's notifications settings

不羁的心 提交于 2019-11-27 04:32:11
I need to always know which options the user choose on the push notification settings. (The options are - alert, sound and badges) So when my app launch I call: UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]; and detect what the user chose. But how can I detect if the user change the settings later during the app life time? Is there some delegate method that get called when a change occur with this settings? Greg There is no delegate. You need to query the UIApplication property enabledRemoteNotificationTypes periodically, for example in

How long does a push notification sit in queue before being removed?

爱⌒轻易说出口 提交于 2019-11-27 04:30:51
问题 I've been digging around trying to uncover some data for apple's push notifications for a client and something I have been unable to find an answer to is how long a push notification will sit in queue for an offline device before it will be removed. There maybe long periods of time, 2-3 months for example, in which the device maybe inactive and powered off. I'm simply interested in knowing how long I can expect a notification to linger, waiting to be delivered to an offline device, before it

iPhone APNS Device Tokens in sandbox vs. production

柔情痞子 提交于 2019-11-27 04:13:47
问题 How do device tokens vary from sandbox to production modes? I think I have locked up some device tokens into a production mode, and they can't be pushed to from development. Any ideas on how I can check? 回答1: When you build your app using a development cert, the app will generate a unique device token. This device token will not work on the production push network. When you then build your app with a distribution provisioning profile (App Store or Ad-Hoc) your device will generate a different

How to get back “Allow Push Notifications” dialog after it was dismissed once?

心不动则不痛 提交于 2019-11-27 04:12:31
问题 I am building an app that is heavily relies on APN. Upon the very first start of my app, iOS asks if this app is allowed to use APN (as a result of registerForRemoteNotificationTypes: call). However once dismissed, this dialog is never popping up back. I have to manually go to Settings->Notifications->MyApp to enable/disable things there. So is there a way to avoid this hustle and actually experience what user will experience upon the very first start every time I start my app in debug mode?

Apple Push Notification with Sending Custom Data

假装没事ソ 提交于 2019-11-27 04:09:40
问题 I am sending push notifications from php job application to iphone. I am sending push notifications regarding new jobs. Is this possible that when user click on the view of push notification pop up , then user redirect to the particular job in the device. I mean I wanted to know can I send any custom data with push notification like jobId,something else....so that Iphone end Can retrieve and show the particular job ? Thanks. 回答1: Regardless of the language and library you use, the push

apple push notification not working in production

只愿长相守 提交于 2019-11-27 04:04:43
问题 We are totally stucked, please help. I and my team made a iPhone application, and this is the first time we try on iOS. Everything is fine, until we submitted our app and became available on app-store -- the push notification service is not working. I searched around the web and tried double check on our app by people's advices, but I couldn't find what's wrong. so this question is posted here. These are what we did: We build the application, suppose it's named "AppMaster". We created AppId

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

给你一囗甜甜゛ 提交于 2019-11-27 03:57:22
问题 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, working version of such instructions elsewhere on the web. Our shop is fairly new to iOS dev, I personally am completely inexperienced with iOS dev and Xcode. I've stumbled through tens of tutorials, articles, and trouble posts from Apple and elsewhere