apple-push-notifications

How to send Push Notification to multiple devices?

放肆的年华 提交于 2019-11-29 20:42:58
This is the first time I am using push notification in my App. I have gone through sample applications along with books and I got how to send push notification to a single device. But I am not getting exactly what changes should I do in my program to send push notification to multiple devices. I am using 'PushMeBaby' application for server side coding. Please, help me out. Priyank Try this example code and modify for your environment. $apnsHost = '<APNS host>'; $apnsPort = <port num>; $apnsCert = '<cert>'; $streamContext = stream_context_create(); stream_context_set_option($streamContext, 'ssl

How to generate development MDM/APNS certificate?

泪湿孤枕 提交于 2019-11-29 20:21:11
We have taken iOS developer Enterprise account and we have received the MDM certificate which is in .pem format.We have download this mdm certificate from the portal https://identity.apple.com/pushcert/ But we don't have idea that this is production MDM certificate or development MDM certificate. First we want to test MDM commands using development certificate and after getting MDM payloads,we can can continue for production. So my question is how to create MDM/APNS certificate which can be used for getting MDM push notification from gateway.sandbox.push.apple.com , if this is possible. I have

aps_developer_identity.cer to p12 without having to export from Key Chain?

瘦欲@ 提交于 2019-11-29 19:55:00
I have a shed load of 'aps_developer_identity.cer' certificates exported from iPhone Developer portal. They were all created using the same Certificate Signing Request and (thus) the same private key. If I export just the private key from the Apple Key Chain is it then possible to take the private key and the 'aps_developer_identity.cer' and use openssl to create merged p12/pkcs#12 certificate that I can use on my (Windows) server. Just to be clear, I know how to get a merged p12 from the Key Chain by exporting both the private key and certificate together, but I want to remove all the extra

Apple push notification server side in C#

元气小坏坏 提交于 2019-11-29 19:36:16
问题 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

How to use geo-based push notifications on iOS?

妖精的绣舞 提交于 2019-11-29 19:23:53
Is it possible to make use of geo-based push notifications on iOS when the application is killed (not in the background)? I am interested in building an app, where the user will choose a position on a map, and then if he/she for example is close to that area a local geo-based push notification would be triggered. However is this "idea" even possible? Can the GPS run and compare coordinates when the app is killed and run and notify the user when is in place? Is there a tutorial/article/more information of any kind on the subject that i could read? Most of the information I read online were more

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

馋奶兔 提交于 2019-11-29 18:31:08
问题 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

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

懵懂的女人 提交于 2019-11-29 18:07:15
问题 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? 回答1: Is there a similar feedback service for Android GCM? No. If not, how to detect which Android users no longer have the app

didReceiveRemoteNotification is not running when app is running (FOREGROUND)

让人想犯罪 __ 提交于 2019-11-29 17:55:24
I have a strange case. My swift ios app is connected to Cloudkit. If the app is NOT running (background state), I receive my notifications badge and alert just fine, every time! If the app is running, no notifications are received! I know it is not hitting the remote because I do this: 1. Adding a breakpoint to the didReceiveRemoteNotification event 2. Running xcode in a plugged iphone 3. NSLog("detected didReceiveRemoteNotification"), so final code look like this func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject]){ NSLog("detected

Long-polling vs Apple Push Notification Service & Android C2DM [closed]

扶醉桌前 提交于 2019-11-29 17:45:34
问题 I am building a mobile application that has some realtime constraints. Therefore I turn to stackoverflow to get advices & opinions and attempt to decide which is the best solution to update the state of the application while running: rely on long-polling or direct connection to my server rely on Apple Push Notification Service and Android C2DM Beyond the fact that APNS and C2DM provide a unified interface to push notification while the application is running or not, one can say that a custom

OneSignal iOS issue “No Push Token” with SDK 2.0.7

被刻印的时光 ゝ 提交于 2019-11-29 17:25:27
I am confronting a weird error from OneSignal and push notifications. I have 3 devices (2 iPhones, 1 mini iPad). After i completed the entire process of Push notifications, only my iPad receives push notifications from OneSignal. All my devices are registered in my Developer Account and what i found is the most weird situation is that i NSLOG the didRegisterForRemoteNotificationsWithDeviceToken to see if each device connected receives a token and they all indeed get a token but for some reason OneSignal doesn't. Only the iPad token. The only difference that i could see is that the iPad is 9.3