Closed pisolofin closed 1 year ago
Thanks for the report. I don't see any workaround here.
It could be a limitation or bug around all this:
When app is terminated, if you call at first getInitialAppLink()
does it gives you a truncated link?
You can also manually try with getLatestAppLink()
afterwards to better locate a potential bug.
I did some tests.
I can call a very long http url. http://localhost:30000/test/long-call?user_id=2&access_token=9xXTrme...
I can call flutter application with long params. .../example.exe "foo/#/book/hello-world2?user_id=2&access_token=9xXTrme...
I can call C# application with long params. .../example-c.exe "foo/#/book/hello-world2?user_id=2&access_token=9xXTrme...
If I try to call it from browser sample://foo/#/book/hello-world2?user_id=2&access_token=9xXTrme...
nothing happens. Browser asks me to open application, but application doesn't start.
In Flutter and in C# example.
So if I understand you well, this is indeed the limitation of GET URLs length over 2048 chars... Well, bad news but good news since a clear access token is not the best idea regarding security.
Yes, you got it right. Yes also for the second part, I will implement OAuth2 code style authentication also for non-OAuth2 code flow authentication. On the mobile app all works great.
I'm using
app_links
version 3.2.0 in my Windows application. I useapp_links
to do a login in my external application. The link contains authorization token and other information.Authorization token is very long and the total length is more than 2048 characters. If the link to my application is more than 2048 application starts, but
_appLinks.uriLinkStream.listen
does not called.I used the example application to try it.
That link works, but is I add any single chars the application stop to work
sample://foo/#/book/hello-world2?user_id=2&access_token=9xXTrme1et7IJHV1xfCQ2EoCN8KWf0INgIwSqpZBUuWbBSBT13Lm0plLCtDPVsaA38oM8QugxJ7gQH8poc4BFw6IIeISuidDQ9JVVcoh5UCPJpjyPhfVyh1panxJ7lSOiKkGdHfIez6oLov4c13vQMAOPBMujikzDQL096lOgg2gWJI1psyU7LSVeekXiBbXioJZ4PxzTxs4z3qVp3GkIvH4qtSAQnVGDVpHcKf5a5BYUiT8nAtcjVoyF9xcZrl9Uf9GFRSAYMA1K9zh6ojtRsMfuAPgBW4ZhzKa3wFgKmPRMkgVwyaa1G563YUlH9J724ZRC7tNsiVRrjGr4gyGMqgvd0N6L7v4e6ov4mEt8dAfePeRdaxeoHI0c5qTToJOnnJChSyZLh8tVnwp79NsmzMu7EK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