devicetoken

How to access certificate from eToken in java

拟墨画扇 提交于 2019-12-03 17:33:43
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(); System.out.println(cert.getIssuerDN()); System.out.println(cert.getSubjectDN()); System.out.println

Is the device token as unique as the device ID?

六眼飞鱼酱① 提交于 2019-12-03 10:51:17
If we reset an iPhone, the device ID remains the same. Is it the same for the device token? I assume you are referring to the device token available to methods such as - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken If this is the case, then no, the device token can and will change . Quoted from Apples Local and Push Notification Programming Guide By requesting the device token and passing it to the provider every time your application launches, you help to ensure that the provider has the current token for the device. If

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

喜夏-厌秋 提交于 2019-12-03 09:05:07
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; $contents = array(); $contents['badge'] = "1"; $contents['alert'] = $msg; $contents['sound'] = "default"

How to manage iOS apns token changes

我怕爱的太早我们不能终老 提交于 2019-12-03 06:37:37
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. Since iOS 9, it seems that the APNS token is changed on every installation. My question is how to tell if

iPhone registerForRemoteNotificationTypes does not generate an error but does not fire delegate that gives device token

半腔热情 提交于 2019-12-03 05:58:07
I am developing an iPhone app that needs push notification. I followed the instructions for creating the certifications and modifying the app ID. I am not totally sure I did this correctly, but I did follow the directions. Any idea how I can check to see if this is OK? When I ran in the emulator I did get an error message saying that the emulator did not support push notifications. This was somewhat expected. BTW: I have seem this question out there a few times. It always seems to be with a jail-broken phone. My phone is NOT jail-broken. But when I debug on the iPhone the

how to make iPhone app asks to register device for push notification multiple times

邮差的信 提交于 2019-12-03 00:18:10
I have used the following code to register my app to receive push notification, and I got the alert that asks me to register for push notification and I accidentally press cancel. Now I want to have the alert again so I can fire the delegate method in order to get the device token. But I don't get this alert any more and every time I open the settings I found that the notification is turned off for the app. I tried to delete the app from device, change app version, delete testing profile ,clean the target even I reset all the iPhone settings, but still was not able to solve this.I would very

Do Android GCM registration ids always start with “APA”?

笑着哭i 提交于 2019-12-02 10:55:37
In my app I have different devices registered and for the Android ones I am storing the GCM Registration Id and for the iOS I am storing the device token (push notifications). I want to distinguish when a device is iOS or Android. What is the easiest way to do it? Do Android GCM RegIds start always with string "APA"? In short no. If you need to distinguish between Android and iOS clients, include a platform identifier (eg: platform: Android) along with the InstanceID token when sending it to your server. This way on your server you can know which clients are on which platform. You should not

How to identify if device token is for android or iOS?

僤鯓⒐⒋嵵緔 提交于 2019-12-01 04:08:32
问题 I store Android and iOS device tokens in DB. Following are few examples of device tokens getting saved in the DB. 359092050465370 654C4DB3-3F68-4969-8ED2-80EA16B46EB0 294913EC-6100-42E8-8C2D-E9F68F286ADE How to differentiate whether a particular device token is for an Android or iOS device? 回答1: I recommend that you send additional information along with the token to the server. For example, information about what type of device the token was registered from, i.e. Android or iOS. A suitable

Does a iOS Push notification device token change?

不羁岁月 提交于 2019-11-30 15:51:35
问题 Is there any possibilities for a device token to change after the app is installed and registered for the notification in any kind of scenarios. Scenarios like: App update iOS update or in any other random scenario's. 回答1: Previously in document it was like, If the user restores backup data to a new device or reinstalls the operating system, the device token changes. From new documentation here: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual

Apple Push Notification Registration & Device Token Receive clarification?

≡放荡痞女 提交于 2019-11-29 07:30:27
I am working on an iPhone app with Apple Push Notification integration. I have some doubts on this. If the user clicked "Dont Allow" button in the APNS registration alert, will our code still receives the Device Token from APNS? I have tested that when the user switched off the notification in iPhone notification, still the app receives the Device Token from APNS? It is correct? Can anyone please clarify these doubts? Kimpoy In my understanding on APNS, it doesn't depend on the user's action (as you mentioned that if when the user clicks on "Don't Allow" button) for your iOS to receive the