Changelog
31 Aug 2022
New Version: 0.1.5 or higher
MoMo Platform version required: 4.0.4 or higher
deploymentTarget: 51
Changes:
MOMO PLATFORM
31 Mar 2022
New Version: 3.1.10
Changes:
- Improve responses for requestUserConsents, getUserConsents API, handling three different case: user cancel, user deny and user accept sharing permission. More details
// Case 1: User accept sharing some data
// Responses in 3.1.4
{
"name": "John Doe",
"phone": "09xxxxxxxx",
}
// Responses in 3.1.10
{
"data": {
"name": "John Doe",
"phone": "09xxxxxxxx"
},
"status": {
"name": "granted",
"phone": "granted"
}
}
// Data handle for old and new Platform version
const name = response?.name || response?.data?.name;
const phone = response?.phone || response?.data?.phone;
// Case 2: User cancelled sharing data
// Responses in 3.1.4
{}
// Responses in 3.1.10
{
"data" : {}
"status" : "cancelled"
}
// Case 3: AppId doesn’t have permission to request sharing data / Wrong appId. Go to developers.momoapp.vn to request permission
// Responses in 3.1.4
{}
// Responses in 3.1.10
{
"data" : {},
"status" : {}
}
MINI API
25 Feb 2022
New version: 0.1.4
MoMo Platform version required: 3.1.7 or higher
deploymentTarget: 37
Changes:
- Add getUserConsents API to get user info after permissions granted in requestUserConsents