apple-push-notifications

Can I send an image with Apple's Push Notification Service? [closed]

旧时模样 提交于 2019-11-30 14:32:39
I need to show an image whenever my application receive Notification. Does Apple push notification support image sending? Update If above thing is not possible can we show image from url on UIAlertview when we receive notification. Firula Update! iOS 10 introduced the ability to add media attachments to push notifications. So now we have the ability to include an image in a push notification. [Source: Andrew from comments, and other tutorials that show how to do this, such as this one .] No. The notification payload can be up to 256 bytes long. You can send an image only if the encoded image

Receiving push notification even after the app is deleted iPhone

烂漫一生 提交于 2019-11-30 14:17:46
问题 I implemented push notification in my app. It is working fine. Now the problem is even after i deleted my app from device it is getting the push notifications. So is there any way to unregister the app from push notification when it is deleted from the device. Hoping for your help. Thanks in advance. 回答1: In Apple push notification there is something called - Feedback Service. So when a user deletes an app, the service provider should ideally stop sending notifications to that device. But

CloudKit notifications

若如初见. 提交于 2019-11-30 13:58:11
I might be missing something obvious here. How would one create a CloudKit notification with detail about the CKRecord that you are being notified about? (i.e. not just a generic "New Item Created!" but a notification with the title of the record for instance, like, "Jill and Jessica's Birthday Party!") Is the proper way to do this to create a new subscription with a new notification.alertBody for every new record change? That doesn't make any sense. That leaves the option queryNotification.recordID to pull the data out of CloudKit (or my local store) and add it to the notification somehow?

Best practices for push notifications in multi user applications?

蹲街弑〆低调 提交于 2019-11-30 13:54:59
I'm working on a push architecture that needs to support applications which allow for multiple users. This means more than one user can log into the application with their credentials. The problem I'm running into is what if user A allows push notifications, then logs out, then user B logs in and starts getting user A's push notifications? What are some best practices for handling this type of thing? One thought I had was you could remember the last user who logged in and only display push notifications to the "logged in" user. You would have to send some sort of user context in the message

Apple push notification server side in C#

守給你的承諾、 提交于 2019-11-30 13:51:18
I'm new to .net and doing apn server side in C#. I'm using below code to push the messages to apple server. private void pushMessage() { int port = 2195; String deviceID = "4564c705 63b371aa 3811699e 1e4ac3d2 ba592b27 f2a5a613 d25cd035 xx213e54"; String hostname = "gateway.sandbox.push.apple.com"; // TEST //String hostname = "gateway.push.apple.com"; // REAL // @"cert.p12"; String certificatePath = HttpContext.Current.Server.MapPath("Certi.p12"); //X509Certificate2 clientCertificate = new X509Certificate2(certificatePath, ""); X509Certificate2 clientCertificate = new X509Certificate2(System.IO

Apple's APNS Delivery is Sometimes Slow

孤者浪人 提交于 2019-11-30 13:50:23
Using our own inbuilt APNS push system (written in PHP), we push to our devices on certain events. Some notifications are received by devices fairly instantaneously, while some devices can take up to 15 minutes to see. We hold the connection open (as required by Apple) and reset connections on errors as also documented (typically when they close the connection). All that works fine, I can at any point put into our system queue a message to my ipod touch, and will receive notification within seconds. Sometimes however, on other devices (3G iPhone devices for example) APNS is more often than not

Open a ViewController from remote notification

女生的网名这么多〃 提交于 2019-11-30 13:23:31
I try to open a particular ViewController when my app catch a remote notification. Let me show my project's architecture. Here my storyboard : When I receive a notification I want open a "SimplePostViewController", so this is my appDelegate : var window: UIWindow? var navigationVC: UINavigationController? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { let notificationTypes: UIUserNotificationType = [UIUserNotificationType.Alert, UIUserNotificationType.Badge, UIUserNotificationType.Sound] let pushNotificationSettings =

Push notification - Caused by: java.io.IOException: toDerInputStream rejects tag type 45

折月煮酒 提交于 2019-11-30 13:07:43
I got this error when my server try to push a notification to a specific device based on device token and ck.pem (combination between .pem file, cert and key). Caused by: java.io.IOException: toDerInputStream rejects tag type 45 This is full error message appear in my eclipse console. initial starting push notification sending 2014/03/20 14:28:00:252 INFO net.penril.notification.Initializer: ====Start Push Notification Sending==== SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes

Is there an Android GCM equivalent to the iOS Push Notification Feedback Service?

纵然是瞬间 提交于 2019-11-30 12:39:10
Our webapp sends push notification requests to iOS and Android devices. For iOS, the Apple Push Notification Service has a feedback service so you can detect which devices have uninstalled your app and then remove it from your database. Is there a similar feedback service for Android GCM? If not, how to detect which Android users no longer have the app installed? Is there a similar feedback service for Android GCM? No. If not, how to detect which Android users no longer have the app installed? Quoting the documentation : The end user uninstalls the application. The 3rd-party server sends a

Voip Pushkit notification will not re-launch the app if it was force-quitted and device was rebooted

狂风中的少年 提交于 2019-11-30 12:18:51
问题 I cannot get voip pushkit notifications to re-launch the app if the user has force-quitted the app (by swiping it up in the multi-tasking interface) AND if the device was rebooted. However, I can get the voip pushkit notifications to work in the following scenarios: The app was force-quitted then the pushkit notification arrives. The app will be relaunched immediately. Standard push notifications are not capable of waking the app in such scenario. The app was in the background / suspended and