apple-push-notifications

PHP Apple iOS Push Notifications: Command2 : Binary Interface and Notification Format

末鹿安然 提交于 2019-12-19 03:37:24
问题 Nowadays, PHP and Apple/iOS Push Notifications with Command 2 has been becoming popular. However not sure, how to prepare the format for same, as per Apple guideline here, How to achieve below packet format: Also would like to know, how to receive Format of error-response packet as mentioned below: At present, I am using below simple format: $msg = // new: Command "1" chr(1) // new: Identifier "1111" . chr(1) . chr(1) . chr(1) . chr(1) // new: Expiry "tomorrow" . pack('N', time() + 86400) //

Can Apple's silent push notifications launch my app in the background?

筅森魡賤 提交于 2019-12-19 03:24:26
问题 According to Apple's documentation I can register for silent notification by adding "content-available" = 1 key-value in aps payload dictionary. I want my app to wake up in background when a silent notification arrives. I set App downloads content in response to push notifications value to Required background modes in my info.plist This is my payload dictionary {"aps": { "alert":"Notification alert","badge":1,"sound":"default","content-available":1 } } I am getting callbacks in -(void

Apple Push Notification Limits

非 Y 不嫁゛ 提交于 2019-12-19 03:14:19
问题 I'm developing an iOS application that uses push notifications, I have implemented the app and the server side and it works great if I send just one or two notifications. The problem comes when I need to send the same notification to all of my users, the notifications only get to the first users of the loop. I'm in sandbox, so I wonder if there is any limit for sandbox environment, because I have read that the APNS service has no limit. Any idea? Thanks in advance, UPDATED SOLUTION: I had to

APNS notification sound for iOS

南笙酒味 提交于 2019-12-19 02:39:29
问题 I am having some trouble setting the message sound for my app. So in the apns response sent by the server, I specify "sound" : "default" , and its all good. But if I set the "sound":"chime" , or "sound":"note" , they dont seem to work. It always plays Default. Those are sounds i see form iPhone -> settings -> Sounds. How can i use the "Note" as my preferred notification sound, or should i create my own sound, and add it to the bundle? 回答1: If you want to play a sound other than the default

Push Notification Error: “Unable to set local cert chain file”

♀尐吖头ヾ 提交于 2019-12-18 19:06:57
问题 I wrote a test php page that just sends out a generic push notification and it works intermittently. Sometimes it delivers the message and other times I get this error: "Message: stream_socket_client() [function.stream-socket-client]: Unable to set local cert chain file `/var/www/ninerobot.com/public/mlb/certs/mlbtr-push-dev.pem'; Check that your cafile/capath settings include details of your certificate and its issuer" Do you know how I can solve this issue? I see that on Apple's docs it

How to catch all push notifications from other apps on iOS using private frameworks?

情到浓时终转凉″ 提交于 2019-12-18 18:30:53
问题 I'm looking for a method to detect incoming push notifications directed to other apps on iOS. I know there's probably no way this can be done with public frameworks, but since this is for a personal project, I can use private libraries. I want to contact via bluetooth an external device every time I get a notification, but I can't program the device itself (so no ANCS). I've looked into the SpringBoardServices and the BulletinBoard private frameworks, but I'm not an expert programmer, so I

Why would only some devices be receiving push notifications

坚强是说给别人听的谎言 提交于 2019-12-18 17:36:31
问题 I set up a push notification service to send out notifications to clients based on an RSS feed. I have a service that runs every minute to see if a new post was added to the feed. If so, the service will send out a notification to all the clients. However, some people have been complaining saying that they are not receiving any push notifications. Here is the function that I use to send out the messages: function _sendMessages($tokens, $message) { $payload['aps'] = array('alert' => $message,

Dismissing iOS push notifications remotely

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 17:06:50
问题 The Gmail app for iOS is able to receive push notifications while the app is not running (as most email apps do). However, it is also able to clear all Gmail push notifications from the device when the unread count of the user's Inbox becomes zero, even if the app is not running . Here is an example sequence: 1. Receive a new email in your Gmail account. 2. The iOS device displays a notification for the new message. 3. Go to the Gmail website and open the message (marking the message as "read

GCM push notification when iOS app is in the background

混江龙づ霸主 提交于 2019-12-18 16:56:45
问题 I'm trying to send push notifications to my iOS app with GCM. The app doesn't get the notification when it's in the background but it does when it's in the foreground. I was testing the push notifications with a PHP script also which sends the message directly to the APNS and it's working in the background. The JSON sent to GCM: (I'm sending it from a rest client for testing) { "to" : "token...", "notification" : { "title": "GCM TITLE", "body" : "FROM GCM", "badge": "1", "sound": "default" }

Apple rejection after implementing silent notifications with PushKit

折月煮酒 提交于 2019-12-18 16:56:31
问题 We added silent notifications which require PushKit and enabling VoIP in the Info.plist See Apple's PushKit Doc Now my app is rejected by Apple: Your app declares support for VoIP in the UIBackgroundModes key in your Info.plist, but does not include any Voice over IP services. Please revise your app to either add VoIP features or remove the "voip" setting from the UIBackgroundModes key. The app is NOT a VoIP therefore it doesn't require VoIP features. Removing the VoIP from UIBackgroundModes