ton-connect / demo-dapp-with-react-ui

87 stars 96 forks source link

bug: mobile chrome return strategy fails #5

Closed 7flash closed 1 year ago

7flash commented 1 year ago

In normal behaviour as it happens in mobile safari, universal link triggers tonkeeper directly; but in chrome it's going through middle tonkeeper webpage. Normally "back" return strategy would return user back to my app after confirmation in tonkeeper and that would trigger callback registered for authorization event, but in chrome it returns to tonkeeper page and manual swipe back to my app does not trigger callback.

The question is - how can my app get notified of user login skipping return strategy OR how can we avoid this page?

image

7flash commented 1 year ago

Found temporary solution which is forcing to persist non-completed session:

        const session = connector.provider.session
        connector.provider.connectionStorage.storeConnection({
            type: 'http',
            session: session,
            connectEvent: null,
        })
siandreev commented 1 year ago

In the current version of the tonconnect/ui you cannot connect to the wallet inside of "incognito" window. Try use a normal tab instead of "incognito".