All Products
Search
Document Center

Mobile Platform as a Service:Adapt mPaaS 10.1.68 to iOS 16

Last Updated:Feb 13, 2023

This topic describes how to adapt Mobile PaaS (mPaaS) 10.1.68 baseline to iOS 16.

Background

Apple officially released iOS 16 in September 2022. The apps must be adapted to new system features and APIs of iOS16. In the baseline version 10.1.68.53 and later, mPaaS has completed the adaptation and testing tasks under iOS 16 beta 8.

Status quo

As a base library, mPaaS has completed the adaptation and testing for iOS 16 beta 8 under the .ipa packages built by Xcode 13. If you plan to publish your apps on Apple App Store, you need to use Xcode 13 for packaging.

The toolchains for Xcode 14 are being improved. After the toolchains are improved, mPaaS will release a version adapted to iOS 16 under the .ipa packages built by Xcode 14.

Upgrade the baseline

You can select an upgrade method based on your current baseline version.

Current baseline: 10.1.68 primary baseline

Upgrade based on CocoaPods

To install the latest SDK of the version 10.1.68, perform the following steps:

  1. Make sure that the mPaaS version is 10.1.68 in Podfile.

  2. Run the pod mpaas update 10.1.68 command.

    If an error occurs, you need to run the pod mpaas update --all command to update the plug-in, and then rerun the command.

  3. Run the pod install --repo-update command.

Current baseline: a custom baseline other than 10.1.68.

Contact mPaaS Customer Service for the baseline version.

Security protection configuration

When you develop an app based on the mPaaS framework, the app that uses the HTML5 Container or Mini Program SDK calls JavaScript API (JSAPI) more often. In order to prevent app abuse when loading external pages, we recommend that you verify the URL when you open the URL and use JSAPI. In this case, you need to make sure that only the URL within an app can be loaded to open or restrict JSAPI scopes and permissions of the URL. This can avoid the problems when authentication is not performed.

For information about specific authentication methods, see the following documents:

  1. Set JSAPI authentication.

  2. Set the URL whitelist.

API changes

Changes of API usage are not involved in this adaptation.

Adapt to iOS 16

Apple officially released iOS 16 in September 2022. The apps must be adapted to new system features and APIs of iOS 16.

  • mPaaS 10.1.68 baseline has completed the adaptation and testing for iOS 16 beta 8 under the .ipa packages built by Xcode 13.

  • If you plan to publish your apps on Apple App Store, you need to use Xcode 13 for packaging.

  • The toolchains for Xcode 14 are being improved. After the toolchains are improved, mPaaS will release a version adapted to iOS 16 under the .ipa packages built by Xcode 14.

The adaptations for iOS 16 mainly involve updating screen orientation methods, using the clipboard, and using pictures. The following components are involved:

  • HTML5 Container and offline packages

  • Mini Program

  • Multimedia (private cloud)

  • Face verification (private cloud)

  • Mobile Security Keyboard (MSK) (private cloud)

  • Basic framework

  • Event tracking monitoring

  • Mobile Real-Time Communication (MRTC)

  • Optical Character Recognition (OCR) (private cloud)

  • Scan

  • Map

  • Some internal dependent components

For the apps that use the preceding components, you need to perform the complete test and verification under iOS 16 to ensure functionality, compatibility, and stability.

Handle custom baselines

If you are using a custom baseline, you may need to customize the baseline again based on the new version. To do this, submit a ticket or contact mPaaS Customer Service for consultation.