In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
What this article shares with you is about how iOS pushes the DeviceToken adaptation program. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article. Without saying much, let's take a look at it.
With the upcoming release of Apple's iOS13 system, a push has launched a DeviceToken adaptation program ahead of time to ensure that the new version is compatible with the normal use of APP push services. One of the important changes in iOS13 is that "[deviceTokendescription]" will change under the influence of different running environments and systems. If the adaptation work is not done in time, it will cause SDK to bind to the wrong DeviceToken, thus affecting APN push. Please update and optimize according to the current running environment to ensure that users have a better experience on iOS13 system.
When Xcode11 and iOS13 run "[deviceToken description]", the situation is shown in the following figure:
"[deviceTokendescription]" when running Xcode11, iOS12, or Xcode10 and below, as shown in the following figure:
In view of the different scenarios in which developers register for DeviceToken, an iOS push SDK adaptation scheme is proposed.
If you use the "[GeTuiSdkregisterDeviceTokenData:]" method to register DeviceToken, as shown in the following figure:
Adaptation solution (recommended): due to the old push SDK does not adapt to Xcode11, iOS13 changes, you can choose to upgrade a push SDK version to "2.4.1.0" (docs.getui.com/getui/mobil … ). The code for this scenario is the easiest to handle.
If you use the "[GeTuiSdk registerDeviceToken:]" method to register DeviceToken, as shown in the following figure:
Adaptation: since the process of obtaining DeviceToken strings is to convert NSData into HexString, developers need to modify the conversion scheme after the change of "[deviceToken description]" is issued.
The above is what the iOS push DeviceToken adaptation program is, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.