apple-push-notifications

Push Notifications not being received on iOS 10, but working on iOS 9 and before

时光总嘲笑我的痴心妄想 提交于 2020-01-09 04:17:33
问题 I have several apps that were written in Swift 2.2, compiled with Xcode 7.3 and is live on the App Store. The apps utilize Push Notifications and is working fine in iOS 9.3 and earlier. On devices that have been upgraded to iOS 10, however, my apps don't receive any Push Notifications. Devices that are still running iOS 9 are still receiving notifications. Thinking it might be a certificate or entitlement issue, I have tried the following: Upgraded one of my apps to Swift 2.3, added the APS

XMPP ejabberd SaaS Push Notifications

[亡魂溺海] 提交于 2020-01-07 03:46:29
问题 This is an update to my previous question, XMPP push notifications causing problems. Thanks to the answer from Mickaël Rémond delay and duplication issues are gone but I still fail to understand the behaviour of push notifications. If I move the app to background (without locking device or termination) it won't receive any push notifications, and when I bring it back to foreground all the messages are received perfectly. When the app is in foreground and I lock the device, no notifications

Is 1-courier.push.apple.com needed for IBM MobileFirst APNS notifications? What is it for?

ⅰ亾dé卋堺 提交于 2020-01-07 03:06:14
问题 The IBM MobileFirst Knowledge Center states that the following servers and port numbers have to be accessible for APNS push notifications to work: gateway.sandbox.push.apple.com:2195 feedback.sandbox.push.apple.com:2196 gateway.push.apple.com:2195 feedback.push.apple.com:2196 However, I have seen references in Apple documentation to the endpoint 1-courier.push.apple.com:5223 (for example, Apple's troubleshooting documentation here). Is this server and port required to be accessible by the MFP

Run function when APN is received

耗尽温柔 提交于 2020-01-06 16:19:56
问题 I was able to integrate APNS in my app. Now I want to handle the notifications when the user taps it or when the user receives a notification while using the app. I use the code below to show an alert dialog when a notification is received: func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject], fetchCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void) { // display the userInfo if let notification = userInfo["aps"] as?

CloudKit + no valid aps-environment entitlement error

对着背影说爱祢 提交于 2020-01-06 14:57:18
问题 I try to use CloudKit subscriptions in my app, but didReceiveRemoteNotification not get triggered. I saved CKSubscription to CloudKit . To be sure they exists, when app starts, I plot them out, like: <CKSubscription: 0x15576310; ; Query Subscription: recordType=DailyVote, predicate=TRUEPREDICATE, subscriptionOptions=7, subscriptionID=1FA456A6-9BA5-411D-97B9-1EB57121A5D0, zoneID=(null)> predicate: TRUEPREDICATE subscriptionType: (Enum Value) subscriptionOptions: C.CKSubscriptionOptions I try

Remove “remote notifications” from notification center

不问归期 提交于 2020-01-06 07:52:14
问题 I have the following issue: "My app receive some remote notifications from an own server just to show to the user some practical information. I am not using a icon badge, because I don't need it. If the application user touch the remote notification from the iOS Notification Center my application can catch it without any problem, I receive the options from application:didFinishLaunchingWithOptions: or, if the application is open I catch the remote notification with application

Ignore push notifications when iOS app is in the foreground

浪尽此生 提交于 2020-01-05 15:15:14
问题 I have a fairly large iOS project. When the app receives a notifications while in the foreground, the notification is displayed in something that looks like an AlertView. I want to get rid of it. I have no idea if this is something I programmed myself a long time ago, or if one of the frameworks in the project (Parse, Onesignal, FBSDK) is doing this. My question is, how can I find out where that alert view is coming from, so I can remove that code. I have not implemented the

Ignore push notifications when iOS app is in the foreground

眉间皱痕 提交于 2020-01-05 15:15:13
问题 I have a fairly large iOS project. When the app receives a notifications while in the foreground, the notification is displayed in something that looks like an AlertView. I want to get rid of it. I have no idea if this is something I programmed myself a long time ago, or if one of the frameworks in the project (Parse, Onesignal, FBSDK) is doing this. My question is, how can I find out where that alert view is coming from, so I can remove that code. I have not implemented the

Is there a way to open my application on a specific tab upon receiving a push notification?

醉酒当歌 提交于 2020-01-05 08:40:56
问题 Is there a way to open my application on a specific tab upon receiving a push notification? 回答1: Do a search for Push Notification tutorial on Google, you'll find a few really good links. Study the examples and review the code. Then create a method something like this: -(void)goToNewsTab { [controller setSelectedIndex:4]; } Where controller is your UITabBar. 回答2: Yes, there is. Try setting the selectedIndex property of your UITabBarController. 来源: https://stackoverflow.com/questions/3968372

iOS 6 use of UDIDs for push notifications forbidden?

岁酱吖の 提交于 2020-01-05 06:50:55
问题 Starting May 1st, 2013, Apple will stop accepting apps that access unique device identifiers (UDIDs) . Sounds like didRegisterForRemoteNotificationsWithDeviceToken: , will no longer get passed a UDID as the device token; but so far, this doesn't seem to be the case in iOS 6.0. To get around the issue and hedge the risk of my app getting rejected, I found this S.O. question , where they suggest using ASIdentifierManager to check if the user has enabled ad tracking for the app and then get the