Skip to content

fix: handle missing injected device info - #567

Open
circle-hotaru wants to merge 1 commit into
ton-connect:mainfrom
circle-hotaru:main
Open

fix: handle missing injected device info#567
circle-hotaru wants to merge 1 commit into
ton-connect:mainfrom
circle-hotaru:main

Conversation

@circle-hotaru

Copy link
Copy Markdown

Summary

Fix injected wallet connection failure when a wallet provider does not expose deviceInfo.

Motivation

After analytics was added to the SDK, InjectedProvider started reading:

this.injectedWallet.deviceInfo.appName
this.injectedWallet.deviceInfo.appVersion

during initialization.
This makes analytics metadata mandatory at runtime. However, some already released wallet apps expose a valid injected TON Connect provider without deviceInfo. These wallets can still support the required connection methods, but the SDK throws before the connection flow can start:
TypeError: undefined is not an object (evaluating 'this.injectedWallet.deviceInfo.appName')
Wallet apps can add deviceInfo in future releases, but already released versions cannot be fixed retroactively. Since analytics should not block the core connection flow, the SDK should handle missing analytics metadata gracefully.

@circle-hotaru
circle-hotaru requested a review from a team as a code owner June 18, 2026 02:17
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

@circle-hotaru is attempting to deploy a commit to the TOP Team on Vercel.

A member of the Team first needs to authorize it.

@circle-hotaru

Copy link
Copy Markdown
Author

@thekiba @Alejandbel Please help review the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant