apple-push-notifications

Apple Push Notification Registration & Device Token Receive clarification?

若如初见. 提交于 2019-12-29 07:07:09
问题 I am working on an iPhone app with Apple Push Notification integration. I have some doubts on this. If the user clicked "Dont Allow" button in the APNS registration alert, will our code still receives the Device Token from APNS? I have tested that when the user switched off the notification in iPhone notification, still the app receives the Device Token from APNS? It is correct? Can anyone please clarify these doubts? 回答1: In my understanding on APNS, it doesn't depend on the user's action

Apple Push Notification Registration & Device Token Receive clarification?

有些话、适合烂在心里 提交于 2019-12-29 07:07:06
问题 I am working on an iPhone app with Apple Push Notification integration. I have some doubts on this. If the user clicked "Dont Allow" button in the APNS registration alert, will our code still receives the Device Token from APNS? I have tested that when the user switched off the notification in iPhone notification, still the app receives the Device Token from APNS? It is correct? Can anyone please clarify these doubts? 回答1: In my understanding on APNS, it doesn't depend on the user's action

Removing a notification from notification center on click

删除回忆录丶 提交于 2019-12-29 04:21:25
问题 Is it possible to remove the push notification from the notification center when one is clicked and the app launches? Most apps seem to leave the notification in place. I read on another question that this: [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0]; may work however it doesn't work for me. The Facebook app definitely seems to remove the push notifications once clicked on. 回答1: int badgeCount = [UIApplication sharedApplication].applicationIconBadgeNumber; [

Push Notification Badge Count Not Updating

放肆的年华 提交于 2019-12-29 01:16:53
问题 this is my code for apple push notification, when the application is running and notification coming i am incrementing the badge count and getting desired result when i click home button, on app icon. but when i am not running my application and notification comes, it didn't auto increment badge count and remains to only 1. the value 1 is coming from server. can any one point out where i am doing wrong. thanks in advance. - (BOOL)application:(UIApplication *)application

Push Notification Badge Count Not Updating

混江龙づ霸主 提交于 2019-12-29 01:16:51
问题 this is my code for apple push notification, when the application is running and notification coming i am incrementing the badge count and getting desired result when i click home button, on app icon. but when i am not running my application and notification comes, it didn't auto increment badge count and remains to only 1. the value 1 is coming from server. can any one point out where i am doing wrong. thanks in advance. - (BOOL)application:(UIApplication *)application

ios 7 device token is different for same device

时光毁灭记忆、已成空白 提交于 2019-12-28 10:06:36
问题 I have two applications in one device. For iOS 7 both applications are sending different device tokens but for iOS 6 both apps are sending same device token. As per my understanding device token has to be same for all the application in one device. Is there something different in iOS7 than iOS 6? 回答1: UPDATE: I guess I read this one a bit too quickly. Please note my revisions. If the answer meets your use-case please feel free to accept it. Based on your description I would suggest that there

ApnsPHP: Push notifications working in development but not in production

不打扰是莪最后的温柔 提交于 2019-12-28 06:51:05
问题 Yes: there are many duplicates to this question, but none of the answers helped. I am following this great tutorial by Ali Hafizji on using APNS service for push notifications. Testing APNS in development mode : download aps_development.cer export the private key for the certificate ( aps_development_key.p12 ) Then I combined the two using following commands (using terminal): openssl x509 -in aps_development.cer -inform der -out aps_development.pem openssl pkcs12 -nocerts -out aps_development

CloudKit won't reset my badge count to 0

荒凉一梦 提交于 2019-12-28 06:46:06
问题 I've tried a number of things and can't seem to reset the badge count from notifications comings from cloudKit. Has anyone else ran into this problem. Here is what I've tried: 1) Set the badge count locally to 0 application.applicationIconBadgeNumber = 0; (temporarily removes the badge count). No luck... 2) Call the server to clear the badge count CKModifyBadgeOperation *oper = [[CKModifyBadgeOperation alloc] initWithBadgeValue:0]; [oper start]; No luck... 3) Pull in all notification changes

Missing Push Notification Entitlement warning

筅森魡賤 提交于 2019-12-28 03:31:14
问题 We have created an App ID, distribution certificate and provisioning profile. Push Notifications were not initially enabled. We now need to implement Push Notifications in the app. We have enable Push Notifications in the App D, check the provisioning profile, the provisioning profile was invalid, updated it, and downloaded the latest provisioning profile to use it for next time. We then integrate the APIs for Push Notifications via APNS in our code. After uploading the app in iTunesConnect,

How to write an Apple Push Notification Provider in C#?

北战南征 提交于 2019-12-28 03:21:07
问题 Apple really had bad documentation about how the provider connects and communicates to their service (at the time of writing - 2009). I am confused about the protocol. How is this done in C#? 回答1: Working code example: int port = 2195; String hostname = "gateway.sandbox.push.apple.com"; //load certificate string certificatePath = @"cert.p12"; string certificatePassword = ""; X509Certificate2 clientCertificate = new X509Certificate2(certificatePath, certificatePassword);