Hey all,
I'm trying to trigger an event as follows:
{ "jsonrpc": "2.0", "method": "discovery.launch", "params": { "appId": "app_name", "intent": { "action": "home", "context": { "source": "device" } } } }
And when I call it in the terminal as a cli command: node cli.mjs --event ../examples/discovery-onNavigateToHome.even.json
I'm getting this response
You may want to create a .mf.config.json file for personal use. UserId: 12345 Sending event based on file ../examples/discovery-onNavigateToHome.even.json... { "status": "ERROR", "errorCode": "NO-EVENT-HANDLER-REGISTERED", "message": "Could not send discovery.launch event because no listener is active" }
Im listening to that event in my project as
Discovery.launch(Discovery.events.launch, (intent = {}) => { console.log('intent', intent) })
I'm blocked on this since last week and I ran out of ideas. Can someone help me or give me a workaround of how to trigger a Discovery Launch event so I can open my app with deep link ?
Hey all,
I'm trying to trigger an event as follows:
{ "jsonrpc": "2.0", "method": "discovery.launch", "params": { "appId": "app_name", "intent": { "action": "home", "context": { "source": "device" } } } }And when I call it in the terminal as a cli command:
node cli.mjs --event ../examples/discovery-onNavigateToHome.even.jsonI'm getting this response
You may want to create a .mf.config.json file for personal use. UserId: 12345 Sending event based on file ../examples/discovery-onNavigateToHome.even.json... { "status": "ERROR", "errorCode": "NO-EVENT-HANDLER-REGISTERED", "message": "Could not send discovery.launch event because no listener is active" }Im listening to that event in my project as
Discovery.launch(Discovery.events.launch, (intent = {}) => { console.log('intent', intent) })I'm blocked on this since last week and I ran out of ideas. Can someone help me or give me a workaround of how to trigger a Discovery Launch event so I can open my app with deep link ?