Skip to content

If both application installed (Google Auth and Microsoft Auth) how to open specific one ? #30

@ayushbhaisha

Description

@ayushbhaisha

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(() => {
        })
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions