Release notes
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. - 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 (e.g., my.getStorage).
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:
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 theopenUrl
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.