apple-push-notifications

HOWTO remove device tokens received by Apple APNS feedback

こ雲淡風輕ζ 提交于 2019-12-03 15:47:33
I am successfully fetching Apple APNS feedback data via PHP. The structure that I am getting (after some processing) looks something like this: timestamp device token My question is how to know which of the device tokens should I remove from my database and stop sending notifications to them. Regardz, Mladjo The timestamp is the crucial element here. The timestamp sent by Apple indicates the last time the push service attempted to deliver a message to the device and found the app to be uninstalled. If the device has re-registered with your service since then there is no need to delete it.

Apple Push Notification Collapse Key Equivalent

风流意气都作罢 提交于 2019-12-03 15:11:44
问题 When using Google push notifications, I am allowed to specify a collapse_key value so a device will not receive multiple notifications of the same collapse_key. Does APNS have a similar feature or does anyone know a way to emulate this functionality? 回答1: There is no such feature in iOS. However, since push notifications are sent by a server that is in your control, you can keep track of which notifications you've sent to a particular device, and decide whether or not to send new ones. In

Is there any cost for using Push Notification Service? [closed]

泄露秘密 提交于 2019-12-03 14:40:54
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Is there any cost for using the Push Notification Service? I know it requires using my own server to send notifications, but the signals are passed through an Apple server. There are no server transfer fees? 回答1: No, there is no cost. The only "gotchas" are that your app has to be in the app store(i.e. no

Apple Push Notification not working with ad-hoc build

邮差的信 提交于 2019-12-03 14:03:28
In development mode I can send push notification to devices, instead I can't in production, my setup is: .pem file that is the combination of aps_production.cer of provisioning portal and the private key of my ad-hoc certificate apple server apn: 'gateway.push.apple.com' with 2196 port I have a rails server that saves tokens from devices and then sends notification to apple with those device tokens and the previous .file for opening connection ad-hoc build applications have (it's rubymotion): entitlements['aps-environment'] = 'production' entitlements['get-task-allow'] = false application when

Apple Push Notification Service: Certificate Install Server Side?

[亡魂溺海] 提交于 2019-12-03 13:46:29
I've followed the instructions at How to build an Apple Push Notification provider server (tutorial) in an attempt to set up a push notification server. When I attempt to connect with the following PHP code // connect to apns server $strAPNSUrl = 'ssl://gateway.sandbox.push.apple.com:2195'; $strAPNSCert = 'dev.pem'; // generate stream $oStreamContext = stream_context_create(); stream_context_set_option($oStreamContext, 'ssl', 'local_cert', $strAPNSCert); // create the socket connection $oAPNS = stream_socket_client($strAPNSUrl, $iError, $strError, 2, STREAM_CLIENT_CONNECT, $oStreamContext); I

IOS Push Notifications to specific users?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 13:44:27
问题 Is possible to send an iOS push notification to a specific device? I've built a forum type app which the user can create a question and other people can answer it. I need to send an iOS Push Notification to the specific user which asked the question informing them that the question was answered. Is this possible to be done through PHP or another method? 回答1: Yes, you can absolutely send a push notification to a specific device. First you need to ask the device for permission to receive push

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

家住魔仙堡 提交于 2019-12-03 13:34:23
问题 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 needing any additional development or WatchKit implementation. Apps are not required to do anything to support notifications. The system provides a default notification interface that displays the alert

Push Notifications Permissions

不打扰是莪最后的温柔 提交于 2019-12-03 13:28:04
Trying to work around a few corner cases for when push notifications are denied in the app and I have two questions: 1) Is there a way to reset whether the user has seen the notification request pop up? 2) Is there any way to determine if the user has said no to the notification request? 1) No, unless there's some private API that does that, but that's not allowed by Apple 2) The first time your app is started, after calling registerForRemoteNotificationTypes , you can check if didRegisterForRemoteNotificationsWithDeviceToken is called. If it's not, the user said "No thanks". You can always

What are the steps in implementing Apple Push Notification?

眉间皱痕 提交于 2019-12-03 13:21:15
I am new to this topic and require some guidance in implementing Apple Push Notification in my application. I have created my appID and also configured Apple Push Notification for the same. I have downloaded the provisioning profile and installed the app on the iphone. I have also written the following code provided by Apple documentation - (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken { const void *devTokenBytes = [devToken bytes]; NSLog(@"devToken=%@",devTokenBytes); //self.registered = YES; //[self sendProviderDeviceToken

How do I add a file to the main bundle's /Library/Sounds directory?

旧巷老猫 提交于 2019-12-03 13:12:41
According to Apple's documentation , sound file in the ~/Library/Sounds will be search by system when trying to play a sound. How do I add a sound file to this folder? I tried to write to the folder in runtime, but has no permission. I added a Library/Sounds folder in xcode but it doesn't seems to copy over. xcode -> window -> devices, select my app and show container, folder is not there To add some context, I am doing custom sound for parse push notification. The server guy told me that when broadcasting to many users, sending a custom sound string in the payload for each user will be too