Skip to content

Figuring out how to trigger an event with discovery.launch to the homescreen #107

Description

@nicolasperedoesquivel

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions