MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
269 stars 238 forks source link

[MacOS] Deep links conflict with App Links package #445

Open romaingyh opened 11 months ago

romaingyh commented 11 months ago

Hello !

I fill this issue related to my comment on supabase project.

If you use flutter_appauth with app_links package to handle deep links, it seems that you can handle deep links on iOS but not MacOS. I don't know if it's expected, I tried to look at the ios/macos implementation of the package but I'm not good enough in native to find the cause.

If this behavior is normal can you explain to me so I can think of another implementation on my side. Thanks !

MaikuB commented 11 months ago

I've heard of similar issues before but not something I can help with. This is something I maintain in my spare time and have yet to use it with other packages for deep linking. Others like yourself in the community would need to help with resolving this. I'm not sure if it's even possible to resolve

romaingyh commented 11 months ago

I've heard of similar issues before but not something I can help with. This is something I maintain in my spare time and have yet to use it with other packages for deep linking. Others like yourself in the community would need to help with resolving this. I'm not sure if it's even possible to resolve

Thank you for your reply. I understand and I think you are right, it is not possible to solve this problem. Both packages use NSAppleEventManager to listen for deep links, but each application can only have one listener.

In fact, this would mean that you can only use one package which listen deep links in your Flutter application.

MaikuB commented 11 months ago

Ah yes that makes sense as only one event handler can be specified. I'd suggest asking on the official Flutter repository to see if it's possible for the team to provide a way to register multiple handlers. They've done something similar before on iOS where plugins could add themselves as an app delegate so they to respond to the related events