You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to use the CLI and browser extension to trigger lifecycle events in an app with listeners set up using Lifecycle.listen as described in SDK docs.
I was making use of the example events in the CLI folder and kept getting the NO-EVENT-HANDLER-REGISTERED error code even though the server was registering listeners with messages like: Registered event listener mapping: 12345:lifecycle.onbackground
If I change the example event method (eg. here) from camelcase to lowercase, the event get triggered correctly. Eg.
{
"method": "lifecycle.onForeground", // Does NOT trigger event
"result": {
"state": "foreground",
"previous": "background"
}
}
It seems that either the examples are incorrect or the server is not parsing the events correctly. It would be ideal if we could use the examples out the box rather than having to update them.
The text was updated successfully, but these errors were encountered:
I did an investigation. The bug is valid and the PR properly addresses the issue. Thanks for bringing this up! I'm going to approve the PR but we won't be able to merge it in unless you sign the Contributor Agreement. Once that's done everything else should be good to go.
jmeier204
added a commit
to jmeier204/mock-firebolt
that referenced
this issue
Jan 31, 2024
I have been trying to use the CLI and browser extension to trigger lifecycle events in an app with listeners set up using
Lifecycle.listen
as described in SDK docs.I was making use of the example events in the CLI folder and kept getting the
NO-EVENT-HANDLER-REGISTERED
error code even though the server was registering listeners with messages like:Registered event listener mapping: 12345:lifecycle.onbackground
If I change the example event
method
(eg. here) from camelcase to lowercase, the event get triggered correctly. Eg.Similarly in the browser extension: eg.
It seems that either the examples are incorrect or the server is not parsing the events correctly. It would be ideal if we could use the examples out the box rather than having to update them.
The text was updated successfully, but these errors were encountered: