apple-push-notifications

How to use Apple's new .p8 certificate for APNs in firebase console

拟墨画扇 提交于 2019-11-26 11:56:36
问题 With the recent up gradation of the Apple developer accounts, I am facing a difficulty that while trying to create the push notification certificates, it is providing me with (.p8) certificate instead of APNs ones which can be exported to (.p12). Firebase console only accepts (.p12) certificates so how I can get that out from these new (.p8) certificates. 回答1: I was able to do this by selecting "All" located under the "Keys" header from the left column Then I clicked the plus button in the

Detect if the app was launched/opened from a push notification

一世执手 提交于 2019-11-26 11:34:47
Is it possible to know if the app was launched/opened from a push notification? I guess the launching event can be caught here: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { if (launchOptions != nil) { // Launched from push notification NSDictionary *notification = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]; } } However, how can I detect it was opened from a push notification when the app was in background? shanegao See This code : - (void)application:(UIApplication *)application

iOS application: how to clear notifications?

天涯浪子 提交于 2019-11-26 11:03:53
I've an iOS application where some Push Notification are sent to. My problem is, that the messages/notifications stays in the Notification Center in iOS after then are tapped. How can I remove a notification for my application in the Notification Center next time the application opens? I came across posts where people are calling setApplicationIconBadgeNumber to a zero-value to clear the notifications. That's seems very weird to me, so I believe that maybe another solution exists? EDIT1: I'm having some problems clearing the notifications. Please see my code here: - (void) clearNotifications {

didReceiveRemoteNotification not working in the background

非 Y 不嫁゛ 提交于 2019-11-26 10:28:13
问题 I\'m working on a big app with a huge chunk of legacy code. Currently - there\'s an implementation for: - (void) application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo The problem is that it is only called when the app is in the foreground OR when the user taps the the notification while the app is in the background. I tried to implement: - (void) application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo

Why push notifications is not working on testflight?

独自空忆成欢 提交于 2019-11-26 10:21:22
问题 I have tested push notifications as a developer account and it worked, But when i tried to put it on TestFlight for the testers to test it, it didn\'t show a push notification but the data is correctly received, So is there a kind of certificate that i need to generate for TestFlight? 回答1: But when i tried to put it on TestFlight for the testers to test it, it didn't show a push notification but the data is correctly received. That sentence is confusing. If you didn't get the push

Delivery report of sending remote push notifications using APNS - IOS

坚强是说给别人听的谎言 提交于 2019-11-26 09:13:45
问题 I am sending remote push notifications using APNS. The requirement is when the notification is delivered to the app user (even if the user did not tapped on the notification or even seen it) , send a delivery receipt to the web server (i.e. call a web service) according to the notification id i received. APNS did not have a provision of delivery reports. Their is a feedback service of APNS, however that does not offer delivery report either. So i would like to know what are the possible ways

Creating .pem file for APNS?

不想你离开。 提交于 2019-11-26 08:57:26
问题 How do I create a .pem file to be stored in the hosting server for APN payload data? 回答1: Here is what I did, From:blog.boxedice.com and "iPhone Advanced Projects" chapter 10 byJoe Pezzillo. With the aps_developer_identity.cer in the keychain: Launch Keychain Access from your local Mac and from the login keychain, filter by the Certificates category. You will see an expandable option called “Apple Development Push Services” Right click on “Apple Development Push Services” > Export “Apple

Missing Push Notification Entitlement

大城市里の小女人 提交于 2019-11-26 08:49:20
问题 I have received a warning mail from Apple after submitting the binary build. Missing Push Notification Entitlement - Your app appears to include API used to register with the Apple Push Notification service, but the app signature\'s entitlements do not include the \"aps-environment\" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution

How to send a silent Push Notification payload

。_饼干妹妹 提交于 2019-11-26 08:16:09
问题 I just want to know how I can determine what action to do on a silent push: This is the aps that I sent to the client: \"aps\": { \"content-available\": 1 } My problem now is when I add type: \"Order_Update\" to determine that the silent push is for the Order Update to display an alert notification. 回答1: There are a few options for it! Let's take a small ride to understand all the different payloads and their usage. Simple Payload Displayed in Notification Center : Yes Wakes app to perform

How to set up push notifications in Swift

孤人 提交于 2019-11-26 07:58:58
问题 I am trying to set up a push notification system for my application. I have a server and a developer license to set up the push notification service. I am currently running my app in Swift. I would like to be able to send the notifications remotely from my server. How can I do this? 回答1: While the answer is given well to handle push notification, still I believe to share integrated complete case at once to ease: To Register Application for APNS, (Include the following code in