diff --git a/platforms/eCurrency/client/public/W3DS.svg b/platforms/eCurrency/client/public/W3DS.svg new file mode 100644 index 00000000..92e73a91 --- /dev/null +++ b/platforms/eCurrency/client/public/W3DS.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/platforms/eCurrency/client/src/components/auth/login-screen.tsx b/platforms/eCurrency/client/src/components/auth/login-screen.tsx index 0cd36f6a..c542db38 100644 --- a/platforms/eCurrency/client/src/components/auth/login-screen.tsx +++ b/platforms/eCurrency/client/src/components/auth/login-screen.tsx @@ -166,12 +166,11 @@ export function LoginScreen() {
-

- {isMobileDevice() - ? "Login using your eID Wallet app" - : "Scan the QR code using your eID App to login" - } -

+ + {isMobileDevice() + ?

Login using your eID Wallet App

+ :

Scan the QR code using your eID App to login

+ }
diff --git a/platforms/eCurrency/client/src/lib/utils/mobile-detection.ts b/platforms/eCurrency/client/src/lib/utils/mobile-detection.ts index d47658c5..251c9654 100644 --- a/platforms/eCurrency/client/src/lib/utils/mobile-detection.ts +++ b/platforms/eCurrency/client/src/lib/utils/mobile-detection.ts @@ -9,6 +9,16 @@ export function getDeepLinkUrl(w3dsUrl: string): string { } export function getAppStoreLink(): string { - return "https://apps.apple.com/app/eid-wallet"; -} + const userAgent = + navigator.userAgent || navigator.vendor || (window as { opera?: string }).opera || ''; + if (/android/i.test(userAgent)) { + return 'https://play.google.com/store/apps/details?id=foundation.metastate.eid_wallet'; + } + + if (/iPad|iPhone|iPod/.test(userAgent) && !('MSStream' in window)) { + return 'https://apps.apple.com/in/app/eid-for-w3ds/id6747748667'; + } + + return 'https://play.google.com/store/apps/details?id=foundation.metastate.eid_wallet'; + } diff --git a/platforms/eReputation/client/public/W3DS.svg b/platforms/eReputation/client/public/W3DS.svg new file mode 100644 index 00000000..92e73a91 --- /dev/null +++ b/platforms/eReputation/client/public/W3DS.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + +