React-native-firebase: 'dynamic_link_received' with no listeners registered

Created on 1 Feb 2018  路  7Comments  路  Source: invertase/react-native-firebase

I am Testing out Dynamic links .
Sometime i get this warning that says "Sending dynamic_link_receivedz with no listeners registered

This logs the message object correctly:

Firebase is initialized in my Root container. (this problem happens almost every time on the first install.

firebase.links() .getInitialLink() .then((url) => { if (url) { deepLinkGoTo = url; // app opened from a url } else { // app NOT opened from a url } }); firebase.links().onLink((url) => { deepLinkHandle(url); });
looks like firebase is initialized late.

any ideas ?

react-native: 0.51.0
yarn: v1.2.1
react-native-firebase: 3.2.4
XCode: 9.2
iOS 11.2

Needs Triage Bug iOS Links

Most helpful comment

@IsracardTeam thanks for the report, I'm currently looking at something similar in messaging at the moment. Once I've resolved there, I'll apply the fix to Links as well.

All 7 comments

@IsracardTeam thanks for the report, I'm currently looking at something similar in messaging at the moment. Once I've resolved there, I'll apply the fix to Links as well.

@chrisbianca Thanks

@chrisbianca did you handle this issue on v.3.30 that was released today ?

@chrisbianca I'm getting same warning with dynamic links in iOS, let me know if there is any further feedback I can give 馃憤 this is in RNFirebase v3.3.1 still

Same here on 3.3.1,
I get the link if I've already opened the app once, but not when opening directly from app store install.

I'm wondering if I have the url scheme entered correctly? I assume I was supposed to make it a string?

screen shot 2018-03-17 at 8 01 31 am
screen shot 2018-03-17 at 8 01 46 am

Also I'm not getting any 'onLink' events. I've instead had to put

````

  • (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity
    restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler
    {

return [RCTLinkingManager application:application
continueUserActivity:userActivity
restorationHandler:restorationHandler];
}
````

Back in and use the linking library

This should be resolved in the latest v4 release candidate.

Hi @chrisbianca just tried with new release candidate, but now has changed to:

``` Sendinglinks_link_received` with no listeners registered

````
This is when opening directly via app store. If I install the app and open it once then the link works fine.

The onLink is now working btw, thanks!

Update! I logged the RNFirebaseLinks.m file and it is showing in the method:

````

  • (BOOL)application:(UIApplication )app
    openURL:(NSURL *)url
    options:(NSDictionary *)options {
    FIRDynamicLink *dynamicLink = [[FIRDynamicLinks dynamicLinks] dynamicLinkFromCustomSchemeURL:url];
    if (dynamicLink && dynamicLink.url) {
    NSLog(@"dynamic linke: %@", dynamicLink.url);
    NSURL
    url = dynamicLink.url;
    [RNFirebaseUtil sendJSEvent:self name:LINKS_LINK_RECEIVED body:url.absoluteString];
    return YES;
    }
    NSLog(@"no dynamic link");
    return NO;
    }
    ````
    I.e I get the NSLog "dynamic link" value and it's correct. This seems encouraging! I just don't get it in the app

Here is the output of the log (stupid typo and all haha):

2018-03-29 17:55:25.560999+0700 Sinc[3164:1429563] dynamic linke: https://mydomain/myconsole/invite/asd234sdada/asdds1342134 2018-03-29 17:55:25.561 [warn][tid:main][RCTEventEmitter.m:54] Sending `links_link_received` with no listeners registered. 2018-03-29 17:55:25.562301+0700 Sinc[3164:1429563] Sending `links_link_received` with no listeners registered.

Was this page helpful?
0 / 5 - 0 ratings