Achievements
bridge.achievements.isSupportedbridge.achievements.isGetListSupportedbridge.payments.isNativePopupSupportedlet options = { }
switch (bridge.platform.id) {
case 'y8':
options = {
achievement: 'ACHIEVEMENT_NAME',
achievementkey: 'ACHIEVEMENT_KEY'
}
break
case 'lagged':
options = {
achievement: 'ACHIEVEMENT_ID'
}
break
}
bridge.achievements.unlock(options)
.then((result) => {
// success
})
.catch(error => {
// error
})Last updated