apple-push-notifications

Media Attachment in iOS 10 Push Notifications

情到浓时终转凉″ 提交于 2019-12-02 00:17:36
I'm struggling with adding an image to my Push Notification in iOS 10. I have added a Notification Service Extension, and have used the following code: override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) { self.contentHandler = contentHandler bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent) if let urlString = request.content.userInfo["image-url"] as? String, let fileUrl = URL(string: urlString) { URLSession.shared.downloadTask(with: fileUrl) { (location, response, error) in

Can I use Apple Push Notification Service to have my app do something without notifying user in iOS 7

♀尐吖头ヾ 提交于 2019-12-01 23:29:13
My Algorithm wishes to work this way- If some desired event occurs at my server then I wish to send a small amount of data to every user my app (foreground or background). But, instead of notifying the user I wish my app to do some computation on data and acknowledge server. Remember user must not be notified. You can use the content-available key in the push notification data and application:didReceiveRemoteNotification:fetchCompletionHandler: . It could be considered a bit of a hack for your use case and if you try to use it too much you will get limited by Apples system. You can do this on

Handling Remote Notifications

时光毁灭记忆、已成空白 提交于 2019-12-01 22:39:22
I was reading how handling remote notification on developer apple guide. My questions are two: what is the interpretation of the phrase The notification is delivered when the application isn’t running in the foreground isn’t running in the foreground covers background and not running or in the background state just. Based on the interpretation, the following sentence: the application icon is tapped on a device running iOS, the application calls the same method, but furnishes no information about the notification. has a different sense. The second question concerns the situation where I get two

Reset Push Notification settings for alert

我是研究僧i 提交于 2019-12-01 22:08:24
问题 I have developed an app that enabled push notification. It is available in AppStore. After installing the application on my device it shows Alert for enabling push notification sometimes only. Is that an issue from my side?. In the case that once I did "Use" action and after some days I deleted app from my device. Will the alert for allowing push notification be asked the next I download it from AppStore. Issue is like once I give "Use/Cancel", and deleted the app from device, on next

push notification iOS native extension for Adobe Air

牧云@^-^@ 提交于 2019-12-01 21:20:10
I'm working on iOS native extension for Adobe AIR that will get device token for push notifications. Unfortunately I'm not that munch objective-C programmer and I'm not sure if there's something wrong in the code I'm using. It compiles with no problem, I can use the extension with AIR but looks like registering for notifications doesn't return neither positive nor negative effect. So what I'm trying to do is register for notifications when RegisterDevice function is called from AIR and if it does register store the device token in deviceTokenString and if it doesn't register and comes back

Running a background task in iOS at a specific time in the future

泪湿孤枕 提交于 2019-12-01 20:45:55
Is there a way to wire a background task (such as toggling the use of location services) in iOS 7 to run at a specific point of time (e.g. tomorrow morning) without the user opening the app, or without having a constantly running background process? The only option that I am aware of is to have a push notification sent to the device at the desired time, but does anyone know of any purely on-device alternatives for this? any purely on-device - unfortunately till now - 2014 there is no such ways. Background task execution if content avaliable appeared in iOS 7 is rather a good thing but it is

Pushsharp apple notification A call to SSPI failed error

岁酱吖の 提交于 2019-12-01 20:23:09
I am using PushSharp to send Apple Push Notification in C# , i have my production .pem file and its password. Below is my code snippet.Am always getting this error .. "A call to SSPI failed, see inner exception. ---> System.ComponentModel.Win32Exception: The message received was unexpected or badly formatted-" OR "System.IO.IOException: Authentication failed because the remote party has closed the transport stream." I tried almost all codes available in net.Even tried MoonAPNS but same error, For custom script also am getting this SSPI failure error. I use the same .pem file and run a php

any limitation push notification via APNS or C2DM?

蹲街弑〆低调 提交于 2019-12-01 20:15:50
In enterprise, we will send push notification to 17,000 employee. They have smartphone(iOS, Android). We expect to send about 18 millions push notification per year. Is there any limitation push notification count via APNS or C2DM? I cannot found officer document in apple or google for the notification limitation. we must check this, before deploy our app. Please help me. Not sure about C2DM, but APNS has no limit I've found yet. I send roughly 7 million push notifications a month through my servers, yet to see a problem. The general quota for Android's C2DM is 200,000 msgs per day for regular

iOS push notification received when app is running in foreground

荒凉一梦 提交于 2019-12-01 20:07:37
问题 From my understanding, when app is running or in the foreground and a push notification is received, the app should NOT show any alert but the app delegate will call the didReceiveRemoteNotification delegate method and I should handle the push notification in that callback. The push notification should ONLY display alerts/banners when the app is in the background. However, our app gets push notification alert with an OK button when the app is running or in the foreground sometime, not all of

iOS push notification received when app is running in foreground

不打扰是莪最后的温柔 提交于 2019-12-01 19:03:22
From my understanding, when app is running or in the foreground and a push notification is received, the app should NOT show any alert but the app delegate will call the didReceiveRemoteNotification delegate method and I should handle the push notification in that callback. The push notification should ONLY display alerts/banners when the app is in the background. However, our app gets push notification alert with an OK button when the app is running or in the foreground sometime, not all of the time. I'm wondering if it is something new in iOS 7 (I have never heard of this) or is it because I