Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Capacitor plugin on android No listeners found for event

$
0
0

@armanfantasy wrote:

Hello everyone please help me i made a capacitor plugin for handling firebase dynamic link
i managed ios but now i’m stuck on android

this is in my MainActivity

this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
            // Additional plugins you've installed go here
            // Ex: add(TotallyAwesomePlugin.class);
            add(FirebaseDynamicLink.class);
        }});

and when i get the dynamic link on android i get the link and then on my plugin i do

JSObject ret = new JSObject();
        ret.put("deeplink", url);
        Log.i("welcome","got it");
        notifyListeners(EVENT_FIREBASE_DYNAMIC_LINK, ret,true);

but on log i get

Notifying listeners for event onOpenWithDynamicLink
No listeners found for event onOpenWithDynamicLink

and on my app.compnent file i do this

FirebaseDynamicLink.addListener('onOpenWithDynamicLink',(value)=>{
        let deeplink = value.deeplink;
        console.log(deeplink);
       this.parsDynamicLink(deeplink);
      })

and i do not get anything because on android studio log i got that log which i mentioned

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>