app_links icon indicating copy to clipboard operation
app_links copied to clipboard

Deeplinks in a linux AppImage

Open liquidiert opened this issue 1 year ago • 4 comments

Describe the bug

Hey, I tried to bundle my flutter application into an AppImage. The bundle works and also the custom scheme handler gets registered in the .desktop file. When I try to open the AppImage via my link it does not register that it got called. App flow is the following:

  1. Click on button that redirects to authentication page in browser
  2. Browser calls custom scheme and opens app
  3. Here it should register the call but it does not :(

I use appimagetool to bundle the AppImage and appimagelauncher to include it into my system.

Does it related to

[ ] App Links (Android)
[ ] Deep Links (Android)
[ ] Universal Links (iOS)
[ ] or Custom URL schemes? (iOS)
[x] Custom URL schemes (Linux)

Does the example project work?

[ ] Yes
[ ] No
[x] Irrelevant here

Did you fully read the instructions for the targeted platform before submitting this issue?

Uploaded your files to webserver, HTTPS, direct connection, scheme pattern setup, ...

[x] Yes
[ ] No
[ ] Irrelevant here

liquidiert avatar Feb 15 '24 12:02 liquidiert

I'm not familiar with Linux but Linux code was refactored in version 6.0. It may worth a try.

llfbandit avatar May 04 '24 20:05 llfbandit

@llfbandit I get an error using v6:

══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
The following MissingPluginException was thrown while activating platform stream on channel
com.llfbandit.app_links/events:
MissingPluginException(No implementation found for method listen on channel
com.llfbandit.app_links/events)

When the exception was thrown, this was the stack:
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
<asynchronous suspension>
#1      EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:676:9)
<asynchronous suspension>
════════════════════════════════════════════════════════════════════════════════════════════════════

Should I open a new issue?

liquidiert avatar May 05 '24 10:05 liquidiert

Sorry about that. 6.0.1 has been released to (hopefully) fix v6.0.0 init.

llfbandit avatar May 05 '24 12:05 llfbandit

Hey @llfbandit 6.0.1 works again! I will try with appimages asap :)

liquidiert avatar May 09 '24 05:05 liquidiert