apple-push-notifications

What iPhone push notification services are out there? (Hosted services, not the APNS) [closed]

落爺英雄遲暮 提交于 2019-11-28 20:37:21
问题 I'm looking to avoid running my own server all the time when dealing with Apple's push notification service. From my understanding, I need a constant connection to the APNS which I can't afford... I was planning on releasing my app for 0.99 or for free and I really don't want to spend a lot of money elsewhere. After a bit of googling I found sites like http://www.appnotify.com which seems really interesting (and may be a perfect match for me). Are there any other services similiar to this one

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

微笑、不失礼 提交于 2019-11-28 20:36:09
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(): SSL: Connection reset by peer I'm testing using the sandbox server tls://gateway.sandbox.push.apple.com:2195 Here is what I tried: I tried to reissue the PEM and all certificates with it. I played around with the request protocol sslv3:// and tls:// . I played around with the

How to use Objective C to send device token for push notifications and other user settings to sql table on server

試著忘記壹切 提交于 2019-11-28 19:23:28
问题 Ideally, I would like to send an HTTP Request using POST to the Push Notification Server that contains the device token as well as some user-defined settings. From there I can set up a php script on the server to deal with the incoming data and input it into an sql table. If this is the only way to do it, how would I go about initiating and HTTP Request from Objective C? 回答1: You'll first need to convert the device token to a hex string with a function like this: - (NSString*

How to clear push notification badge count in iOS?

匆匆过客 提交于 2019-11-28 19:10:02
I want to clear the push notification badge count once app is launched.Im not clear where to set the below code.Please give brief description about clearing the badge count. [UIApplication sharedApplication].applicationIconBadgeNumber = 0; Sumanth You should set this: [UIApplication sharedApplication].applicationIconBadgeNumber = 0; in either of these AppDelegate methods if the application is launched and sent to background then you launch the application didFinishLaunchingWithOptions method will not be called so use either of these methods: - (void)applicationWillEnterForeground:

ios10 custom push notification sound not playing

杀马特。学长 韩版系。学妹 提交于 2019-11-28 19:05:37
问题 I am currently running iOS 10 beta 8 with Xcode 8.0 beta 6 and the custom sound does not play when I receive a push notification with the correct payload. I have verified the payload and it is in the correct format per the apple documentation: { "aps" : { "alert" : "You got your emails.", "badge" : 9, "sound" : "bingbong.aiff" }, "acme1" : "bar", "acme2" : 42 } When I send the same payload to the same build on iOS9 the custom sound plays properly. Does anyone know if there are any other

Get the Push-Notification list on iOS8

青春壹個敷衍的年華 提交于 2019-11-28 18:59:58
Is it possible to get the text of all the received push notifications on iOS 8? Has anyone found something on the documentation provided by Apple? I know that the notification list can be obtained using a bluetooth device, but I'd like to get it locally. Its very simple try this in Xcode6: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //-- Set Notification if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) { [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings

Couldn't able to connect to APNS Sandbox server

∥☆過路亽.° 提交于 2019-11-28 18:57:16
I am trying to connect to Apple APNS server with the following observations: 1)port 2195 is open 2)With Valid key passphrase for APNS_SSLCertificate_Key.pem 3)Entrust certificate (2048) downloaded from https://www.entrust.net/downloads/binary/entrust_ssl_ca.cer 4)With the successful telnet response as below : $ telnet gateway.sandbox.push.apple.com 2195 Trying 17.172.232.226... Connected to gateway.sandbox.push-apple.com.akadns.net. Escape character is '^]'. But when i run the following openssl command in my server to test the APNS connectivity : openssl s_client -connect gateway.sandbox.push

Using sandbox APNS on AdHoc Distribution Builds for iOS

旧街凉风 提交于 2019-11-28 18:46:50
问题 I've been reading a bunch of Apple's docs, as well as many other SO questions, but haven't found the answer to this particular question. I have an existing workflow in place for generating AdHoc Distribution builds for QA members and beta testers. Now that I've added support for push notifications, I'd like those notification paths to be able to be tested as well. I'm under the impression that Developer builds, signed with a Development provisioning profile, generate tokens that for the

Apple Push Services created instead of Apple Production iOS Push Services

烈酒焚心 提交于 2019-11-28 18:37:36
I'm trying to create a certificate for Production iOS Push Services. Instead I get an Apple Push Services . How can I create a dedicated Apple Production iOS Push Services certificate? The top certificate is what I used to get. The bottom one is what I now get. I use Pusher application to test my push notifications certificate and it cannot read the p12 of the new Apple Push Services. Apple have changed the name of the certificate that is issued. You can now use the same certificate for both development and production. While you can still request a development only certificate you can no

Apple Push Notification: Sending high volumes of messages

核能气质少年 提交于 2019-11-28 18:00:41
问题 I am using PHP to connect to apn s to send some notifications to multiple devices, although the question is more conceptual so it doesn't have to be specific to PHP. I will be sending to about 7000 devices (and growing) all at the same time. My process runs ONCE per day and broadcasts to all devices, so I am not constantly re-opening a connection. Currently I can easily send to 2 devices at a time and the messages will successfully deliver. However when I attempt to send to the full 7000