apple-push-notifications

Suggestion on how to link APN's device token to a registered user (through phonegap or UIWebView)

断了今生、忘了曾经 提交于 2019-12-03 06:06:53
问题 Similar question here: jQueryMobile, Phonegap and Device Token - iOS The scenario is, I have this PhoneGap web based application, and the native iOS help me registered the device on APN and I received the device token in my server database. Question 1: How do you associate a registered user (through the UIWebView) to this device token using PhoneGap? What's in my mind now is to write a custom plugin and pass the device token along during user registration. Is there any better alternative?

iPhone registerForRemoteNotificationTypes does not generate an error but does not fire delegate that gives device token

半腔热情 提交于 2019-12-03 05:58:07
I am developing an iPhone app that needs push notification. I followed the instructions for creating the certifications and modifying the app ID. I am not totally sure I did this correctly, but I did follow the directions. Any idea how I can check to see if this is OK? When I ran in the emulator I did get an error message saying that the emulator did not support push notifications. This was somewhat expected. BTW: I have seem this question out there a few times. It always seems to be with a jail-broken phone. My phone is NOT jail-broken. But when I debug on the iPhone the

iOS10 UNNotificationServiceExtension not called

[亡魂溺海] 提交于 2019-12-03 05:49:26
问题 Im implementing new iOS10 extension to use rich notifications. Im trying to test it on push notifications but is not working, I just receive a simple notification and is not going through the extension. I did all that it's specified in the official sites and some other places: I have my app up and running with push notifications and the right provisioning profile I added a new target to my app, a Notification Service Extension Implemented my own code (it doesn't matter really because is not

iOS chat APNS, sockets or time interval [closed]

不问归期 提交于 2019-12-03 05:45:56
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm making a chat app for iPhone, but im not sure how conversation messages should come instantly. I have read tons of Google results

iOS Push Notification Settings - Denied Permission vs Permission Never Requested

▼魔方 西西 提交于 2019-12-03 05:45:45
问题 Is it possible to differentiate between the cases where an iOS user has explicitly denied user notification permissions, and an iOS user has never been prompted for permission? My situation: In the past, I've prompted for user notification permission, but never kept track of requests myself. Later, I stopped attempting to register any notification settings. Now, I'd like to re-introduce user notifications. After a significant event in the App, my plan is to display some sort of UI that

Calling didReceiveRemoteNotification when app is launching for the first time

妖精的绣舞 提交于 2019-12-03 05:41:51
问题 I have implemented my didReceiveRemoteNotification method. It works and displays a view controller with the notification data which is passed through. This only works when the app was already in the foreground or if it was running in the background. However, when the app is not running and the user clicks a notification, the app launches, but it appears as if no notification has been received. The notification is not written into the text file and the viewcontroller is not being pushed. -

iOS application missing from notification center [closed]

梦想的初衷 提交于 2019-12-03 05:36:23
Problem: The app doesn't appear on notification center and it is unable to receive push notifications right after installation completes and the app registers for push notifications via registerForRemoteNotificationTypes: . Details: The app usually appears in notification center after the device is restarted and after that everything works just fine. Sometimes the app shows up in notification center right after intallation and registration for APNs(I still can't confirm this but I think I stumbled upon such situations). The app calls the method registerForRemoteNotificationTypes each time a

what kind of certificate do I need to test apns using ad-hoc distribution?

浪尽此生 提交于 2019-12-03 05:35:50
问题 I can't understand from Apple's docs if I need a production certificate or a development certificate... 回答1: You need to create a Distribution Certificate. The Distribution Certificate are used for creating Distribution Provisioning Profiles. Which will allow you to do the following: Create an Ad-Hoc version of your app (this is used if you want to distribute to beta-users, testers, etc (this is what you want) ) Create an App Store version of your app ( You'll do this once you're ready to

Apple MDM push error, but only to some iOS devices

末鹿安然 提交于 2019-12-03 05:21:37
We have error with MDMpush on some iPhone devices: Jul 30 17:52:46 Mirnas-iPhone apsd[49] : : Stream error occurred for : Error Domain=NSPOSIXErrorDomain Code=54 "The operation couldn’-t -b-e -c-o-m-p-l-e-t-e-d-. -C-o-n-n-e-c-t-i-o-n -r-e-s-e-t -b-y -p-e-e-r-" -U-s-e-r-I-n-f-o-=-0-x-1-4-3-5-4-0 -{-} All devices are the same, same iOS version, but on 50% of devices we have this error. On other devices push is working perfectly. Devices with this problem checks in without problem during MDM payload installation, but when we try to push something, error happens. We had similar symptom long time

iOS app with real-time updates from server: Socket (using streams) or Apple Push Notification service?

…衆ロ難τιáo~ 提交于 2019-12-03 05:08:44
问题 I'm trying to make an iOS 5 app that features real-time things coming from the server. It will only use these whilst the app is running. To make it real-time without polling I have been evaluating two design routes: Creating a socket from the app to the server, and exchanging information via streams. Pros: Relatively simple and would not involve a 3rd party. Cons: Battery life drain. For an overview of how this might work, check out this excellent tutorial: http://www.raywenderlich.com/3932