hengsokchamroeun / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

How to convert Device Token to 64 char Hexadecimal Value #78

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
  i'm working for MDM. I have completed the enrollment part. In enrollment part, I got device token,PushMagic and unlockToken value. 
(token - 32 byte base64 encoded) 
  Plan to use your javaPNS. For testing, i'm using NotificationTest.java. It expect 64 char token value. So my question is how to convert enrollment-device-token( 32 byte base64 encoded) to 64char token.  

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

javapns_2.0

Please provide any additional information below.

Original issue reported on code.google.com by rvinothk...@gmail.com on 2 Nov 2011 at 2:30

GoogleCodeExporter commented 8 years ago
There are numerous Base64 encoders out there...  Search for "java encode 
base64" in Google and you will find many.

Original comment by sype...@gmail.com on 2 Nov 2011 at 3:03