apple-push-notifications

how to validate Apple APN device token - WCF .NET

≡放荡痞女 提交于 2019-12-04 14:43:07
I am building a WCF REST web service that is called by the mobile app to insert the Apple device Token into the database. I would like to validate a device token before inserting into the database. Is there anyway to validate a device token to know if it is valid?? I have searched around the forum and could not find any sample code (in .NET) to do this, there were recommendations that I should use the Apple FeedBack service but how do I do that in .NET?? Could anyone please provide me a piece of sample code to validate an Apple Device Token in .NET. Many thanks, You can't validate the device

iPhone: Increment badge counter automatically [duplicate]

浪尽此生 提交于 2019-12-04 12:52:48
Possible Duplicate: Push-Notification Badge auto increment. I have implemented Push Notification for my iPhone application. Whenever I get the message, I want to increment badge value by one so I need not to pass it in Push Notification payload. Is it possible? From here I learnt that I have to manage that from server side, so that's the only way? I had to store the previous value in Database and get the last value whenever I send next message? Isn't Apple support this automatically like incrementing application.applicationIconBadgeNumber whenever Push Notification received. The problem with

apple push notification with APNS sharp

匆匆过客 提交于 2019-12-04 12:45:32
i use APNS Sharp library for my apple push notification. i have downloded from Here .i use sample test program provided by APNS sharp library without any modification. it simply does not send any notification until i put break point at that line of code. if i put break point. i just work fine.is this expected behaviour or i am doing something wrong. and also i am not getting any exception. thanks for any help. here is the code static void Main(string[] args) { bool sandbox = true; string testDeviceToken = "Token"; string p12File = "apn_developer_identity.p12"; string p12FilePassword =

How to handle multiple push notifications with user data arrived at different times?

一曲冷凌霜 提交于 2019-12-04 12:31:17
问题 My app is receiving APNs sent from server to Apple backend. Naturally a user may not open the app once a notification arrives to user's device. In meantime my server may push more notifications. They all contain some user data that is important when a notification is processed. So how to deal with it? iOS won't bundle and give me a batch, will it? Here are ways how I am going to tackle it, none of which is simple. Server keeps track of not seen data and upon arriving a new request always

iOS not receiving background push notification using apn nodejs

岁酱吖の 提交于 2019-12-04 11:56:56
My device is not receiving background push notifications. I'm at wits end, I've tried every tutorial I can find and searched through Stack Overflow. Device and APN are set to debug/development I can successfully register device token I have an active .p8 key with push notification services APN says the push message was sent successfully didReceiveRemoteNotification doesn't fire Tried with app in background and foreground using AWS: inbound - port 22, outbound - all ports This is the response: {"sent":[{"device":"cc7ec9a821cf232f9510193ca3ffe7d13dd756351794df3f3e44f9112c037c2a"}],"failed":[]}

How to manage iOS apns token changes

烈酒焚心 提交于 2019-12-04 11:45:35
问题 I had an issue where a user started receiving double notifications after uninstalling and reinstalling my app, as the device sent to my server 2 different APNS tokens - one from the first installation and the other after reinstalling the app. Since the tokens were different I could not know this is the same device. Until iOS 9 came out, every time I uninstalled and reinstalled the app, I always got the same APNS, so it was easy to know that this is the same device the user used as before.

How to ensure that iOS app received EVERY push notification send by server?

我是研究僧i 提交于 2019-12-04 10:56:52
It is widely known that: app doesn't receive push notification if it is in background or offline mode ( app gets it once after user's action: tap on notification or app icon ). Apple push Notification service keep only ONE last notification when device is offline. Once device is connected to internet, APNs sends the last notification. How to solve this? very latest notification that just reached the app ( not device ) must reflect the actual number of notifications that are not implemented in the app yet. So, then I can download from the server last n notifications and implement them in the

Sending Device Token Safely for APNs

家住魔仙堡 提交于 2019-12-04 10:33:25
For iOS applications that require push notifications, it must first request the user for permission to do so. After that, a device token is generated and with this, the remote server may communicate to the user through this token. I have read a similar question here and I do not feel it is enough. The picture below is a trusted certificate, it allows me to view all traffic that happens on this device. With Fiddler2 as well as CertMaker , I can sniff HTTPS traffic, which means the client can probably know what data they are sending, and to where. My question is, knowing that SSL is not secure

How can I handle unread push notifications in iOS?

梦想的初衷 提交于 2019-12-04 10:09:41
I have a iOS 5.1 application that registers to the APNS service to receive notifications. The register is successful and I receive the notifications correctly. The problem comes when I try to handle the notifications. Once the application is running, the method didReceiveRemoteNotification in the AppDelegate is called correctly and so the notification is handled as intended. This, however, only happens when the application is running on the foreground. However, when the application is running on the background or is simply stopped, that method is not called. I've read that you should add some

bold (or other formatting) in iOS push notification

自闭症网瘾萝莉.ら 提交于 2019-12-04 10:08:15
The built-in Messages app makes message-senders' names in push notifications bold . Is it possible to do this for my app? What would such a payload look like? If it's relevant, I'm testing using the Mac app APN Tester to send a push to my iPhone, with this type of payload {"aps": {"alert": "hey bob", "badge": 2}} . (I tried asterisks *text* and HTML tags <b>text</b> but they don't do anything. I can't seem to find documentation on it, either.) There is no rich text functionality in iOS Push Notifications. An alternative for iOS 8.2 plus may be to use the 'title' to display the sender's name,