apple-push-notifications

InvalidProviderToken (403) response

╄→гoц情女王★ 提交于 2020-01-05 04:08:08
问题 node-apn receive InvalidProviderToken (403) response error from APNs. What need I change in configuration to send push message? Apple says: APNs supports only provider authentication tokens that are signed with the ES256 algorithm. Unsecured JWTs, or JWTs signed with other algorithms, are rejected, and your provider server receives the InvalidProviderToken (403) response. Used this tutorial: https://eladnava.com/send-push-notifications-to-ios-devices-using-xcode-8-and-swift-3/ 来源: https:/

Do I still need to register for Remote Notifications to enable Silent Notifications in my app?

不想你离开。 提交于 2020-01-05 02:33:14
问题 I want to send silent notifications to my users (receive in background - not alert, sound or badge). I checked the Remote Notifications option in Xcode's Background Modes. My question is - do I still need to register for remote notifications using [UIApplication sharedApplication] registerForRemoteNotificationTypes ? If so - what type should I use? None of them looks like "Silent Notifications": UIRemoteNotificationTypeNone UIRemoteNotificationTypeBadge UIRemoteNotificationTypeSound

How to simulate a local/push notification in iOS simulator?

荒凉一梦 提交于 2020-01-04 17:01:26
问题 WatchKit allows us to simulate notifications with an .apns file. How can I do the same thing in an iOS app? (Preferably in the simulator.) The reason I ask is that I want to have the debugger active when the app is initially launched via a notification (i.e. I want to see what happens in the application:didFinishLaunchingWithOptions: method). If I start a new debugging session it will call application:didFinishLaunchingWithOptions: immediately, and then I can never test that code path when I

Is there any way to call saveCurrentTurnWithMatchData without sending a push notification?

安稳与你 提交于 2020-01-04 08:22:52
问题 I have a Game Center game that allows players to make multiple moves per turn. In iOS 6, Apple implemented a great feature in saveCurrentTurnWithMatchData that allows you to do just that- it saves the data to game center to prevent cheating by repeatedly redoing a move for instance, without advancing to the next player. The problem is, I have discovered that this actually triggers the same Push Notification taht gets sent when the player does end their turn. So other players in the game will

Is there any way to call saveCurrentTurnWithMatchData without sending a push notification?

限于喜欢 提交于 2020-01-04 08:22:04
问题 I have a Game Center game that allows players to make multiple moves per turn. In iOS 6, Apple implemented a great feature in saveCurrentTurnWithMatchData that allows you to do just that- it saves the data to game center to prevent cheating by repeatedly redoing a move for instance, without advancing to the next player. The problem is, I have discovered that this actually triggers the same Push Notification taht gets sent when the player does end their turn. So other players in the game will

Can't receive FCM Push Notifications for iOS

岁酱吖の 提交于 2020-01-04 06:51:21
问题 I'm trying to use the Firebase Cloud Messaging (FCM) SDK to send push notification to iOS devices. I created a very simple application which has an empty ViewController and an AppDelegate copied by that provided in the quick start iOS project. I followed all the instructions provided in the guide: Installed SDK using pod, here is my podFile: # Uncomment the next line to define a global platform for your project # platform :ios, '9.0' pod 'Firebase/Core' pod 'Firebase/Messaging' target

Missing Push Notification Entitlement Warning in email

冷暖自知 提交于 2020-01-04 03:52:58
问题 After uploading the App to AppStore, I am getting the following warning in an email, where as there are no Push Notifications in my App but there are some third party SDKs like Chartboost, Applovin, Revmob, Crashlytics etc. Has someone else also encountered this problem? If so, have you reached to some solution? Dear developer, We have discovered one or more issues with your recent delivery for "Jigsaw App". Your delivery was successful, but you may wish to correct the following issues in

Handle Notifications when app is terminated(iOS)

烈酒焚心 提交于 2020-01-04 02:27:35
问题 I am working on app which receives notifications(using apple push notifications). I am storing these notifications and showing as list in one controller. As far as I understand whenever notification is received didReceiveRemoteNotification is called. When app is in foreground and background I am able to store notification in Db from didReceiveRemoteNotification method. But when app is terminated how can I store notifications? If user taps on notification when application is terminated I am

Open notification to specific view

倖福魔咒の 提交于 2020-01-03 19:48:46
问题 I'm working on an app in Swift using push notifications. So far I have the following code in my AppDelegate: func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) { println("Received alert and opened it") debugPrintln(userInfo) if application.applicationState == UIApplicationState.Active { // App in foreground println("App in foreground already") } else { // App in background if let tripId = (userInfo["trip"] as? String)?.toInt() { println

Open notification to specific view

僤鯓⒐⒋嵵緔 提交于 2020-01-03 19:47:54
问题 I'm working on an app in Swift using push notifications. So far I have the following code in my AppDelegate: func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]) { println("Received alert and opened it") debugPrintln(userInfo) if application.applicationState == UIApplicationState.Active { // App in foreground println("App in foreground already") } else { // App in background if let tripId = (userInfo["trip"] as? String)?.toInt() { println