Release notes

v2.55.1

Release date: 2024-04-30

New

  • Added the my.getFileSystemManager JSAPI, enabling mini programs to operate files within their file systems.
  • Added the my.hideShareMenu and my.showShareMenu JSAPIs, enabling mini programs to control the visibility of the share button on the more option menu if the super app supports the share capacity.

Enhanced

  • Enabled the option to disable data reporting within IAPMiniProgram SDK.
  • Added the window.minAspectRation parameter in the app.json file, enabling mini programs to set screen display ratio.
  • Updated the my.request JSAPI to support the following HTTP methods: PUT, DELETE, OPTIONS, and HEAD.
  • Updated the my.choosePhoneContact JSAPI to help mini-program developers identify errors that occur in the following scenarios:
    • The user cancels the contact selection.
    • The super app lacks permission to access phone contacts.
  • Updated several JSAPIs to help mini-program developers identify permission-related errors that occur in the following scenarios:
    • The user directly declines a permission request.
    • The user has previously denied a permission request and opted not to receive the same request again.

The updated JSAPIs include my.getLocation, my.chooseImage, my.chooseVideo, and my.scan.

  • Enabled the super app set minSdkVersion in the build.gradle file to earlier versions, beginning with 17, to support older Android devices. However, to ensure the proper function of DSL mini programs, it is recommended to set minSdkVersion to 23 or later.

Fixed

  • Fixed an issue specific to the my.request JSAPI, avoiding the headers.Content-Type parameter to be incorrectly overwritten as application/json when the mini program specifies different values.
  • Fixed a mini-program title display issue that occurred when opening an HTML5 link containing spaces.
  • Fixed a potential null pointer exception that occurred during the hot startup of mini-programs.
  • Fixed inaccuracies in the data reporting of the number of JSAPI calls in mini-programs.
  • Fixed a potential crash that occurred when playing videos in mini programs.
  • Fixed the issue where the titleColor startup parameter could not work on some pages.

v2.53.0

Release date: 2024-02-29

Enhanced

Enabled the page.onShareAppMessage function to display the share panel by default without implementing the GriverSharePanelExtension interface.

Fixed

  • Ensured the following functions of the input component when the value of type is number:
    • Display the numeric keypad.
    • Correctly limit the input length that is specified by maxlength.
  • Fixed the issue where the tab bar could not display properly when the my.reLaunch JSAPI was called to open a new page under certain circumstances.
  • Fixed an issue with the my.getLocation JSAPI to ensure proper fallback to the device's location service when GMS (Google Mobile Services) was unavailable.

v2.52.0

Release date: 2024-01-31

Enhanced

    • Deprecated the fileType request parameter.
    • Added the timeout request parameter to enable mini-program developers to set a timeout period for requests.
    • Added the hideLoading request parameter to enable mini-program developers to customize the display of a loading icon during the uploading process.

Fixed

  • Improved the SDK startup to fix an ANR (Application Not Responding) issue caused by a prolonged startup duration.
  • Fixed a cache clearing issue with the fetchLaunchableGroupsWithCodes API, ensuring a correct language display when the user's language preference changes.

v2.51.0

Release date: 2024-01-09

New

  • Added the Biometric Authentication component for user authentication in mini programs, enabling the use of fingerprint or face ID. For more information, refer to Integrate the Biometric Authentication component.
  • Added the cover-view component to enable mini-program developers to overlay a text view on native components. For more information, refer to cover-view.
  • Added the user rating functionality, enabling mini-program users to rate and provide reviews for mini programs.
  • Added support for Android 14 (targetSDKVersion 34).
  • Added GriverSecurityExtension to enable super apps to encrypt local data stored through local-storage JSAPIs. For more information, refer to Encrypt local data for enhanced security.

Enhanced

  • Removed the need for phone call permissions from the my.getNetworkType JSAPI.
  • Removed the need for album and audio permissions from the my.chooseFileFromDisk JSAPI.
  • Removed the need for album permissions from the my.openDocument JSAPI.
  • Removed the need for album and audio permissions from file selections with the HTML <input> element.

Fixed

  • Fixed an issue with the mini-program title bar, ensuring consistent font and complete center alignment of the text.
  • Fixed the following issues that are specific to the my.chooseVideo JSAPI:
    • Returned incorrect video sizes and dimensions.
    • Returned unintended video paths.
  • Fixed a potential app crash that occurred when switching the app to the foreground with an open HTML5 mini program, and the system recycled the app in the background.
  • Fixed the issue where the text on error pages could not be displayed properly under certain scenarios.
  • Fixed the issue where PDF files were displayed with distortion when opened via the my.openDocument JSAPI.

v2.50.3

Release date: 2023-11-24

New

Added Spanish to the supported languages. For more information, refer to Language.

Enhanced

Improved the functionality of HTML5 mini programs for handling PDF files as follows:

  • Enabled opening of PDF files that lack a .pdf extension.
  • Removed the blank page that previously appeared during the PDF file's loading process.

Fixed

  • Fixed the issue where the my.getLocation JSAPI passed an incorrect error code to mini programs when the user disabled the app's location permission during the JSAPI call.
  • Removed invalid files and links that might pose security risks.

v2.50.2

Release date: 2023-10-27

New

  • Added Arabic to the supported languages. For more information, refer to Language.
  • Added a back button to the TitleBar for both HTML5 and native mini programs.
  • Enabled to optimize resource delivery for H5+ mini programs.

Enhanced

Updated the my.request JSAPI as follows:

  • Supported multiple Set-Cookie headers in the response.
  • Added the enableCookie request parameter.

Fixed

  • Fixed the occasional page height calculation errors that caused the page layout increase on smartphones with virtual buttons after exiting full-screen videos.
  • Fixed the issue where the customized status error page appeared blank in certain scenarios due to duplicate query parameters.
  • Fixed the unresponsive behavior of the Open File With button when the my.openDocument JSAPI has not obtained corresponding system permissions.
  • Fixed the issue where the splash page displayed the incorrect mini-program name and icon when opening a mini program through the QR codes for preview or debugging.
  • Fixed the issue where the toast dialog triggered by the my.showToast API was not displayed on some Huawei devices.
  • Fixed the issue where the language response parameter of the my.getSystemInfo JSAPI was not promptly updated due to caching.

v2.47.0

Release date: 2023-08-11

New

Enabled subpackage loading in mini programs. For more information about this feature, refer to Subpackage loading.

Fixed

  • Fixed the issue where HTML5 pages cannot be opened when their URLs include the u query parameter.
  • Fixed the issue where the page title of the mini program was displayed abnormally due to the upgrade of Android System WebView.

Notes:

  • We have migrated old support libraries to AndroidX libraries from this version. To ensure the SDK performance, it is recommended to conduct a compatibility test after integration. For more information about the migration, refer to Android documentation on Migrate to AndroidX.
  • From Android IAPMiniProgram SDK v2.47.0, the SDK is adapted to support Google Maps version 21.0.1. This upgraded version of Google Maps introduces API changes and enhancements. For more information, refer to Google's release note on October 13, 2022. If you have a local dependency on Google Maps, make sure to upgrade your play-services-location library to version 21.0.1 or higher with the following sample codes:
copy
implementation 'com.google.android.gms:play-services-location:21.0.1'

v2.45.1

Release date: 2023-07-12

Fixed

Fixed the issue that the header parameter in the my.downloadFile JSAPI was not consumed when passed.

v2.45.0

Release date: 2023-06-28

New

Added the <youtube-player> tag to support playing YouTube videos in mini programs.

Enhanced

Improved the integration with the share feature in the more menu of mini programs by adding a new extension point.

Fixed

  • Fixed the following two issues that are related to the prefetching feature:
    • The value of the query parameter obtained each time is the initial startup parameters when opening a mini program multiple times.
    • Format conversion problems when calling the getBackgroundFetchData method in certain scenarios.
  • Fixed crashes in the following scenarios:
    • Open large PDF files
    • Call the addEmbedView method when rendering via same-layer rendering components
    • Start video playing when the playing state of the video player components does not support it
    • Pass values that include the special character / to the openUrl method

v2.44.1

Release date: 2023-06-15

Fixed

Fixed the issue of abnormal page title display in mini programs that was caused by the upgrade of Android System Webview.

v2.44.0

Release date: 2023-05-30

New

Added the my.createLivePlayerContext JSAPI to support playing live-streaming videos.

Enhanced

Removed links using the HTTP protocol from Android IAPMiniProgram SDK to enhance security.

Fixed

Resolved the incompatibility with Google Maps version 21.