React-native-firebase: Could not create dynamic link on Android. setDomainURIPrefix couldn't find the relavant key in the ReadableMap.

Created on 19 Jun 2019  路  11Comments  路  Source: invertase/react-native-firebase

I am using
react-native-firebase: 5.5.2
implementation "com.google.firebase:firebase-invites:17.0.0"
implementation "com.google.firebase:firebase-dynamic-links:17.0.0"

The problem is at line:222 of RNFirebaseLinks.java where the domainURIPrefix is extracted from linkData ReadableMap. It should be dynamicLinkDomain.

Bug Links 5.x.x

All 11 comments

I faced the same issue on iOS as well. The key should be dynamicLinkDomain on Line:206 in RNFirebaseLinks.m

No, this was a breaking change. Sorry it has caused you problems. You should stay on v5.4.x releases, or modify your code to adapt

We had to do it because the support for the key you want was literally removed from the SDK, so to track the SDK in v5.x.x we had to do a breaking change, please follow the release notes: https://rnfirebase.io/docs/v5.x.x/releases/v5.5.x#Upgrade-instructions and carefully note the breaking change warning when you install react-native-firebase now, and at the top of the release notes

I think you misunderstood the issue. I read the docs and breaking changes. But the changes don't align with code in JS and Native SDKs. That's what I am trying to point out here.

Unless someone goes and changes the key name in bridge files inside node_modules, creating dynamic links doesn't work at all. I am just pointing out so that it gets fixed in the next releases.

Oh - that's potentially very different then. Let me look more closely and if I didn't get those changes aligned all the way through then yes we'll need a 5.5.3 quickly with the fix.

https://github.com/invertase/react-native-firebase/pull/2240 is the PR that changed it

Here is where iOS uses the new key

Here is where Android uses it

Here is the Typescript change

Ah but dangit - I thought I got this one but it must have been lost in the git shuffle - I'm not hooking the new key up correctly - you are 100% right. 5.5.3 in just a moment

Sorry for the trouble - this module doesn't have CI / testing support in v5 so it is harder to get the change correct

Will you be able to test this? 5.5.3 is out on npmjs.com now @sauravexodus

I believe this is closed, please re-open if it does not work for you - I will do my best to fix it. Thanks for the quick report!

Thanks for the quick revert. I'll do a quick test and let you know.

It works. Thanks!

Very happy to hear this! Thanks for the success report so I know the fix was good

Was this page helpful?
0 / 5 - 0 ratings