From 2466e719ac573ab9f773bdde4464cb93f8c2c3c9 Mon Sep 17 00:00:00 2001 From: Cory Caywood Date: Thu, 1 Oct 2020 10:28:01 +0900 Subject: [PATCH] docs: Update changelog and userguide for v1.2.0 --- js-miniapp-sdk/CHANGELOG.md | 6 +++--- js-miniapp-sdk/README.md | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/js-miniapp-sdk/CHANGELOG.md b/js-miniapp-sdk/CHANGELOG.md index 17267bd29..9386c1172 100644 --- a/js-miniapp-sdk/CHANGELOG.md +++ b/js-miniapp-sdk/CHANGELOG.md @@ -1,9 +1,9 @@ ## CHANGELOG -### v1.2.0 (In progress) +### v1.2.0 (2020-10-02) -- **Feature:** Added support for requesting the load and display of Interstitial & Rewarded Ads by the host application [See here](README.MD#4-Show-Ads) -- **Feature:** Added `MiniApp.requestCustomPermissions` for requesting `USER_NAME`, `PROFILE_PHOTO`, and `CONTACT_LIST` permissions. +- **Feature:** Added `MiniApp.requestCustomPermissions` for requesting `USER_NAME`, `PROFILE_PHOTO`, and `CONTACT_LIST` permissions. [See here](README.md#3-Request-Permissions) +- **Feature:** Added `MiniApp.shareInfo` for sharing content with other Apps. [See here](README.md#4-Share-Info) ### v1.1.0 (2020-7-21) diff --git a/js-miniapp-sdk/README.md b/js-miniapp-sdk/README.md index 9b188ee06..46adf9786 100644 --- a/js-miniapp-sdk/README.md +++ b/js-miniapp-sdk/README.md @@ -39,10 +39,10 @@ First, download the bundled script file from the [releases page](https://github. ``` -Then you can acces the SDK methods via `window.MiniApp`. +Then you can acces the SDK methods via `window.MiniApp.default`. ```javascript -window.MiniApp.getUniqueId() +window.MiniApp.default.getUniqueId() .then(id => { // ... ``` @@ -110,7 +110,9 @@ miniApp.requestCustomPermissions([ ### 4. Share Info -It is possible for the mini app user to share the mini app data across Android/iOS interface. The data format must match the [ShareInfoType](src/types/ShareInfoType.ts). +It is possible for the mini app user to share data with another App by showing the native content sharing chooser. + +The data format must match the [ShareInfoType](https://github.com/rakutentech/js-miniapp/blob/master/js-miniapp-sdk/src/types/ShareInfoType.ts). ```javascript const info = { content: inputValue };