05-10-2020 17:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-10-2020 17:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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.
Accepted Solutions
12-22-2020 05:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-22-2020 05:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


05-12-2020 12:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-22-2020 05:32
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
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
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-19-2021 15:25
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
@triggi I was having the same issue and your suggestion solved it, thanks.
