Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Universal Link Connection Fails When Kukai App Is Closed #15

Open
softstackio opened this issue Jan 7, 2025 · 1 comment
Open
Assignees

Comments

@softstackio
Copy link

Description
When attempting to connect the Kukai app using a Universal Link in the form of https://connect.kukai.app/wc?uri=, the connection fails if the app is closed. An error message is displayed:

"An unknown error occurred with the connection. This operation can't continue. Please check the other application and try again."

If the app is minimized, however, clicking the same link again allows the connection to succeed.

Steps to Reproduce

  1. Ensure the Kukai app is closed (not running in the background).
  2. Generate a WalletConnect link with the following script:
console.clear();
const walletConnectString = ""; // Add your WalletConnect URI here
const encoded = encodeURIComponent(walletConnectString);
console.log(`https://connect.kukai.app/wc?uri=${encoded}`);
  1. Send the generated link to your iPhone via Telegram or another method.
  2. Click the link to open the Kukai app and connect.

Expected Behavior:
The Kukai app should successfully connect to the WalletConnect session regardless of whether it was closed or minimized.

Actual Behavior:
If the app is closed, the connection fails, and the following error appears:
"An unknown error occurred with the connection. This operation can't continue. Please check the other application and try again."

If the app is minimized, the connection works as expected when the same link is clicked.

Environment:
Kukai App version: 1.1.1
Device: iPhone 14
iOS Version: iOS 18.11
Link Format: https://connect.kukai.app/wc?uri=

Screenshots
Bild

Error message displayed when the app is closed and a Universal Link is clicked.

Possible Fix
Investigate why the app fails to handle the WalletConnect URI when launched from a closed state. This may involve reviewing the app's handling of Universal Links and WalletConnect initialization logic.

Additional Notes
This issue can be replicated by using the above script to generate WalletConnect links and testing them when the app is closed.
For context, the issue does not occur when the app is minimized.

@simonmcl simonmcl self-assigned this Jan 7, 2025
@simonmcl
Copy link
Collaborator

simonmcl commented Jan 7, 2025

hi @softstackio , thanks for the report. This appears to have already been fixed in the latest development build of the app (v.1.2.0). We are hoping to submit that for review this week. Will let you know when its live to confirm this has been fixed

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

No branches or pull requests

2 participants