Although I am using different type from user press and different button I am rather asking to both from any one if click on google and if Microsoft Authenticator installed and clicked on google it will open Microsoft authenticator only. Any solution ?
Above this the code I am using.
if (type === 'google') {
AppLink.maybeOpenURL('otpauth://totp', { appName: 'google-authenticator', appStoreId: '388497605', appStoreLocale: 'in', playStoreId: 'com.google.android.apps.authenticator2' }).then(() => {
// console.log("success")
})
.catch(() => {
})
} else {
AppLink.maybeOpenURL('otpauth://totp', { appName: 'microsoft-authenticator', appStoreId: '983156458', appStoreLocale: 'in', playStoreId: 'com.azure.authenticator' }).then(() => {
// console.log("success")
})
.catch(() => {
})
}