05-10-2020 17:06
05-10-2020 17:06
Even using the simple weather app sample, every message iI send via messaging.peerSocket.send from the device app gets received as {"isTrusted":false} with no other data. The message is received, just without any of the data I added. I'm using a simulator for both the device and companion app. Is this just not supported?
Answered! Go to the Best Answer.
12-22-2020 05:32
12-22-2020 05:32
I was bashing my head against the wall with exactly the same problem for some time. In my case the problem was that I failed to notice that the message is actually in the `data` member of the event object you get. This `data` itself is not an 'own' property of the event, ie it's inherited from a class definition or so, so it does not show up when JSON.stringifying() the event.
05-12-2020 12:43
05-12-2020 12:43
Can you provide some code? Or perhaps start with the sample here:
https://dev.fitbit.com/build/guides/communications/messaging/
12-22-2020 05:32
12-22-2020 05:32
I was bashing my head against the wall with exactly the same problem for some time. In my case the problem was that I failed to notice that the message is actually in the `data` member of the event object you get. This `data` itself is not an 'own' property of the event, ie it's inherited from a class definition or so, so it does not show up when JSON.stringifying() the event.
01-19-2021 15:25
01-19-2021 15:25
@triggi I was having the same issue and your suggestion solved it, thanks.