devicetoken

How to get device token id of windows phone for push notification?

馋奶兔 提交于 2019-12-05 12:35:02
I am creating a windows phone 8 app in phone gap + mobile jquery using visual studio 2012. I want to get the device token id from the device for push notifications. Can anyone guide me as to how can I get device token id of windows phone 8? You can use the DeviceExtendedProperties - byte[] myDeviceID = (byte[])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId"); string idAsString = Convert.ToBase64String(myDeviceID); For what reason you need the device ID? In Windows Phone 8 you need to get a Push Notification cannel, that is an URL that unique identify your app & device

Parse.com deviceToken and PFInstallation not saved

丶灬走出姿态 提交于 2019-12-05 09:38:32
I am encountering a weird behavior of the PFInstallation of my iOS App. On every app launch I am registering the device to receive push notifications and calling the below code on the method didRegisterForRemoteNotificationsWithDeviceToken : PFInstallation *currentInstallation = [PFInstallation currentInstallation]; [currentInstallation setDeviceTokenFromData:deviceToken]; NSLog(@"%@", currentInstallation ); [currentInstallation saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) { if (succeeded) { NSLog(@"currentInstallation saved" ); } if (error) { NSLog(@"currentInstallation NOT

APNs duplicate tokens

邮差的信 提交于 2019-12-05 04:50:02
问题 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

Sencha touch 2 + Apple push notifications + Ext.device.Push

烂漫一生 提交于 2019-12-05 03:50:28
问题 I recently started developing with Sencha Touch 2, at the moment i'm creating an app that needs support for Apple Push Notifications. So I've created the neccesary certificates at the Apple developer center and used them to package the application with the Sencha Touch SDK tools. All went well and I'm able to run this app on my device. In the app I added a button to receive the device token. When I tap the button it executes the following code: Ext.device.Push.register({ type: Ext.device.Push

How to access certificate from eToken in java

吃可爱长大的小学妹 提交于 2019-12-05 02:15:28
问题 I want to read certificate from eToken when it plugged-in, when I store that certificate on local machine I can read it through my java application but, I don't know how to read it from eToken. RSAPublicKey pub; String fileName = "C:\\myCert.cer"; InputStream inStream = new FileInputStream(fileName); CertificateFactory cf = CertificateFactory.getInstance("X.509"); X509Certificate cert = (X509Certificate)cf.generateCertificate(inStream); inStream.close(); pub = (RSAPublicKey) cert.getPublicKey

Saving the DeviceToken for Later Use in Apple Push Notification Services

心不动则不痛 提交于 2019-12-05 02:14:58
In my iPhone app I am getting the device token from Apple which I am assigning a public property inside the Delegate file as shown below: - (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken { self.dToken = [[NSString alloc] initWithData:deviceToken encoding:NSUTF8StringEncoding]; } The dToken property is declared as shown below: NSString *dToken; @property (nonatomic,retain) NSString *dToken; But when I try to retrieve the device token from another file I get the null value. +(NSString *) getDeviceToken { NSString *deviceToken =

iOS APNS: sending the device token to the provider in string format

送分小仙女□ 提交于 2019-12-04 20:34:33
问题 I need to send the APNS device token of my iOS app to my provider by calling a service that expects JSON data in my request. I'm reading Apple's Local and Push Notification Programming Guide and it only says that the application:didRegisterForRemoteNotificationsWithDeviceToken: delegate method passes the device token as NSData and you should pass it to your provider encoded in binary data. But I need it to be converted to string in order to be able to send a JSON request to my provider. I've

Urban Airship - send PUSH to 1 specific device (device token)

南笙酒味 提交于 2019-12-04 15:43:46
问题 So I want to target one specific device token via Urban Airship, but no matter what I do, all of my devices get the message intended for a specific device token. Here's my PHP code - any help is as usual greatly appreciated! define('APPKEY','XXXXXXXXXXXXXX'); define('PUSHSECRET', 'XXXXXXXXXXXXX '); // Master Secret define('PUSHURL', 'https://go.urbanairship.com/api/push/broadcast/'); $msg = "This is a message intended for my iPad 3"; $devicetokens = array(); $devicetokens[0] = $devicetoken;

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.

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.