apple-push-notifications

Handling Push Notifications when App is NOT running

ぃ、小莉子 提交于 2019-12-28 01:41:05
问题 When my App is not running and receives a Push Notification, if I click on that notification, the App is launched - but then it doesn't prompt the user with the Alert-View I set up, asking them whether they want to view the Notification's contents or not. It just launches, and sits there. The Push Notifications do work perfectly when the App is running - either as the Active app or while in the background - but nothing works correctly when the app is not running. I tried logging-out the

PHP technique to query the APNs Feedback Server

二次信任 提交于 2019-12-27 12:54:09
问题 Can someone clarify what the APNs (Apple Push Notification) wants as far as how you query it? The docs say it starts sending as soon as the connection is made. Does this mean that I don't do an fread() on it? Here's my current code to try and read it. I did NOT put the fread() in a loop as I do not know what response indicates "no more records to read" and I didn't want an infinite loop on my server. <?php $apnsCert = 'HOHRO-prod.pem'; $streamContext = stream_context_create(); stream_context

Displaying a stock iOS notification banner when your app is open and in the foreground?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-27 11:04:28
问题 When Apple's official iOS Messages app is open and in the foreground, new messages from other contacts trigger a stock, native iOS notification alert banner. See image below. Is this possible in 3rd party apps on the App Store? Local and/or Push Notifications for your app while your app is open and in the foreground ? When testing my app , notifications are received but no iOS alert UI is shown . But this behavior is seen in Apple's official Messages app: The Local and Remote Notification

Displaying a stock iOS notification banner when your app is open and in the foreground?

旧巷老猫 提交于 2019-12-27 11:01:44
问题 When Apple's official iOS Messages app is open and in the foreground, new messages from other contacts trigger a stock, native iOS notification alert banner. See image below. Is this possible in 3rd party apps on the App Store? Local and/or Push Notifications for your app while your app is open and in the foreground ? When testing my app , notifications are received but no iOS alert UI is shown . But this behavior is seen in Apple's official Messages app: The Local and Remote Notification

didReceiveRemoteNotification when in background

旧城冷巷雨未停 提交于 2019-12-27 10:51:02
问题 These kind of question has been asked a number of times but i have some specific situation going on. When my application is active and I receive a PUSH message i'm successfully able to parse the custom payloads and such. However when my application is in the background and the PUSH arrives the user has to click on the 'View/Open' button in order to get the didReceiveRemoteNotification called and the didFinishLaunchingWithOptions is called after that. I need to have my application decide if

Push notifications for iPhone app paid subscription

六眼飞鱼酱① 提交于 2019-12-25 18:13:44
问题 Do you need to pay for a subscription to enable your iPhone app to receive push notifications? I'm looking to create an app that allows the client to push notifications to all users who have downloaded that app. For this to work, do you need to pay for a subscription to a push notification server or something like that? 回答1: You will have to create your own server to communicate with Apple servers. You can also use Urban Airship and communicate with them via their API: http://urbanairship.com

Apple Push Notification: Sending high volumes of messages

北城余情 提交于 2019-12-25 15:54:37
问题 I am using PHP to connect to apns 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. open connection to apple loop over device tokens create payload aggregating all devices end loop write to socket ONCE with whole payload for 7000

Apple Push Notification: Sending high volumes of messages

荒凉一梦 提交于 2019-12-25 15:53:19
问题 I am using PHP to connect to apns 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. open connection to apple loop over device tokens create payload aggregating all devices end loop write to socket ONCE with whole payload for 7000

IBM Worklight - What should I deploy after changing or adding iOS push certificate?

半腔热情 提交于 2019-12-25 11:55:46
问题 I am working on an IBM Worklight 6.0.0.1 project. I configured push notifications for iOS before that my Application is already deployed in the server. My question is: What should I deploy again to get the push notification certificate (the .p12 certificate file) on the server. Should I just deploy the iPhone .wlapp file? or should I also deploy a newer version of the .war file? 回答1: You will need to re-deploy the .wlapp file, which contains the deployment data for the server. In this case,

iOS 10 - didRegisterForRemoteNotificationsWithDevice only called the first time

此生再无相见时 提交于 2019-12-25 08:47:47
问题 I'm having a problem where didRegisterForRemoteNotificationsWithDevice only gets called the first time I call registerForRemoteNotifications after reinstalling the app, on iOS 10. What's happening: after uninstalling the app and then running the app in debug from XCode, I tap "allow" on the in-app popup and I do get my log message for "did register for remote notifications with device token!", and I get a device token. This makes me hesitantly think that my certificate / provisioning profiles