How do I get Device tokens for a production environment?

Source: Internet
Author: User

In a sandbox environment, we can print device tokens to the console for device tokens. But the replacement to the production environment (production) is not so convenient. If you want to get device tokens for your production environment, you can follow these steps:

  1. Open the following url:http://developer.apple.com/library/ios/#technotes/tn2265/_index.html
  2. In the upper right corner of the page, there is a Companion file connection, click to download the Companion file. Get a tn2265_persistentconnectionlogging.zip file after downloading.
  3. Unzip to get a persistentconnectionlogging.mobileconfig file. Send it as an attachment to your own mailbox.
  4. On the device, use the system's "mail" program to open this message (note that it must be the system's mail program, not the "Mailbox Master" and other third-party mail clients).
  5. Click on the persistentconnectionlogging.mobileconfig file in the attachment, which will install a APS/PC Logging profile on the device. During the installation process, you will need to enter the lock screen password.
  6. After installation, restart the device.
  7. In Xcode, open window/devices, and look at the console log for your device, and you can see similar handlereceivedpublictoken:<282aae5d 52978299 134078ed 2702ea16 ddfbd208 10d6fb01 9353c601 4ad773e4>, this is the device token (remove the space).

How do I get Device tokens for a production environment?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.