Fallback link on desktop #5737
-
So, I'm trying to figure out how to configure a fallback link, when I manually create a dynamic link, that redirects in desktops. When using fallbackUrl in the builder, the Promise returned contains both AFL and IFL parameters not encoded.
The snipped above results in:
When opening in mobile, the links redirects/open the application like it should. On desktop, it says: "Dynamic Link Not Found The domain prefix is already registered in the console. React-Native - 0.64.2 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 21 replies
-
Hi there! I don't want to spend any more time on it really until I know it's still valid in current versions. Past that - I think the assumption is that you need to url-encode all links that you send in to the builder? Does it work if you do that? |
Beta Was this translation helpful? Give feedback.
-
First, sorry about the issue. Couldn't figure out how to delete a discussion because I created by mistake and didn't know if this was the right place to have this conversation.
Again, sorry. I meant redirects to the store* like it should. After updating the dependency, all the parameters passed to the build are encoded.
|
Beta Was this translation helpful? Give feedback.
-
After a bit more of testing I got to redirect on desktops after manually adding EDIT: formating and semantics |
Beta Was this translation helpful? Give feedback.
-
@harrysayers |
Beta Was this translation helpful? Give feedback.
After a bit more of testing I got to redirect on desktops after manually adding
&ofl=ENCODED_FALLBACK_LINK
at the end of new dynamic link.I'm not sure how the links are encoded in the builder even after looking at the source code. It's a bit of work, but I can manually encode the links I need in the app, verifying which one I need per occasion.
On that note, in my opinion, it should be created a optional parameter
desktop
at buildLink likeandroid
orios
to act as fallback link for desktops.EDIT: formating and semantics
EDIT 2:
encodeURIComponent
doesn't encode dots, but resolved the problem anyway