apple-push-notifications

APNs duplicate tokens

两盒软妹~` 提交于 2019-12-03 20:39:06
We have a push notification server which holds the data (device tokens) for several different applications. With Apple wanting to stop people using the UDID as identifier, I was looking into changing this server so that it does not rely on UDIDs to identify devices any longer. I understand that the tokens returned by APNs are not globally unique, but rather unique per device. However, when going through our database, I noticed that there are several cases (a few hundred on 750k+ registrations) where the same token is used for different devices . So I'm trying to figure out what's causing this.

Cancel Banner Notification in iOS8 Not Working

你。 提交于 2019-12-03 20:13:47
My title might not accurately depict my question, so I apologize. I have looked for a solution to creating this level of functionality but I am unable to find it. I am creating a VoIP application for iOS 8. When a user receives a call I am displaying a notification with a 12 second ringtone. While this notification is in progress if the call disconnects I want the Incoming Call notification to disappear and display a Missed Call notification immediately. This level of functionality is possible because Viber does it. Currently, I am sending a silent push notification when a Incoming Call is

iPhone iOS push notifications apns on production not sending

*爱你&永不变心* 提交于 2019-12-03 19:56:11
问题 I've been working on this for a while now. I know there's a ton of articles out there, and have learned a lot about it all. I have created my development and production SSL's the same way. Development connects to ssl://gateway.sandbox.push.apple.com:2195 Production connects to ssl://gateway.push.apple.com:2195 The connections seem to work fine. As for the app. Development: When I run it directly on to my device from xCode, it runs the development version. The app successfully records the

How to use geo-based push notifications on iOS?

允我心安 提交于 2019-12-03 18:20:26
问题 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

Why I can't add APNs Development iOS typed certificate to provisioning profile

别说谁变了你拦得住时间么 提交于 2019-12-03 17:06:39
I am trying to implement APNS for my App. I created APP id and was able to generate an SSL certificate for my App (the type is shown to be APNs development IOS). However, when I try to generate a provisioning profile, following the screen where I choose the AppID of my app, I do not see the SSL certificate I generate for this app. In the certificates list, I only see certificates of type 'IOS development' that were created previously. The APNs certificate that you created is used by what the documentation refers to as the "APNs Provider" -- In the simplest case, this is your own server that is

APNS Send notifications from multiple servers

拟墨画扇 提交于 2019-12-03 16:47:38
I am writing an iOS application which will be sent notifications over APNS from backend servers. Can I configure multiple servers to connect to APNS and send notifications? If so, is there a limit on the number of servers which can send notifications for a single application? I can't find any details about this on the Apple site (e.g. http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html ) Yes, you can have multiple servers (Providers) connected to the APNS to send notifications to the same application

How to implement APNS notifications through nodejs?

▼魔方 西西 提交于 2019-12-03 16:33:57
Does someone now a good npm module to implement Apple PUSH notifications? A simple example would be great. The solution I've found is the following which uses the apn module. var apn = require('apn'); var ca = ['entrust_2048_ca.cer']; /* Connection Options */ var options = { cert: 'path to yuour cert.pem', key: 'path to your key.pem', ca: ca, passphrase: 'your passphrase', production: true, connectionTimeout: 10000 }; var apnConnection = new apn.Connection(options); /* Device */ var deviceToken = 'your device token'; var myDevice = new apn.Device(deviceToken); /* Notification */ var note = new

Apple Push Notifications (APN) Inconsistency?

我只是一个虾纸丫 提交于 2019-12-03 16:12:06
We are running into a confusing issue when using Apple's Push Notifications via APN. We have the following scenario (quite standard i guess): When our App, let's call it "MyApp" here, is installed and started for the first time we are asking the user for permissions to send him Push Notifications through "MyApp". In this example the AppDelegate looks like this: import UIKit import UserNotifications class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions

Capture answer to “App would like to send you push notifications” alert

可紊 提交于 2019-12-03 16:08:55
The first time you call registerForRemoteNotificationTypes: on your UIApplication object, a UIAlertView pops up saying "[app] would like to send you push notifications". Is there any way to know when "OK" or "Don't allow" is tapped in this AlertView ? Currently application:didRegisterForRemoteNotificationsWithDeviceToken: is called on my AppDelegate , even before a user makes a decision. The reason I ask is because on first launch, I want to push a ViewController with Notification options, but only if the user indicated that they want to receive notifications. You can use next method of

Create Installation object from Cloud code with Parse

倾然丶 夕夏残阳落幕 提交于 2019-12-03 16:02:17
As documentation says - "The JavaScript SDK does not currently support modifying Installation objects.", but what about creating these objects? is it possible to create Installation objects from cloud code? For ex: Parse.Cloud.define("registerForNotifications", function(request,response) { var token = request.params.deviceToken; var deviceType = request.params.deviceType; var user = request.user; var installation = new Parse.Object("Installation"); if (installation) { installation.set("deviceToken",token); ... so on.. installation.save(); } }); Will this work? Thank you. Some example: //The