04-23-2018 17:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-23-2018 17:26
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
It works fine in simulator. I also did an app based on it which successfully interacts with websites.
But when I run the sample app as-is unmodified on my Versa it fails -- just does the initial "Waiting..." and nothing more.
In my more complex app I add handlers that send error messages from the companion to the app. The app portion worked in my more complex example by updating a counter. But the companion failed. This is why I went back to the unmodified sample for testing.
04-24-2018 08:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-24-2018 08:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Have you granted the "Internet" permission? Can you post the project on Github?

05-01-2018 17:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-01-2018 17:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
yes. Gave permissions.
I'll need to get up to speed on Github but here is a pointer to the ZIP file https://1drv.ms/u/s!AglBpbKyzKIQjIFWZHh0qjk4XIr_9A (with one URL changed to protect the guilty)

05-01-2018 23:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


05-01-2018 23:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I think it might be because you're trying to fetch an http resource, are you able to change that to https?

05-02-2018 05:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-02-2018 05:41
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
It worked in the emulator. Why would it fail on the watch itself? I also catch errors and send messages to the app so that I'd be able to detect such problems but the error message don't seem to arrive.
Is there an equivalent to console.log that sends messages back to Fitbit Studio from the device?

05-02-2018 05:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


05-02-2018 05:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
The mobile device has security restrictions which I'm guessing the desktop browser does not have.
console.log can be used on the device and the companion.

05-02-2018 06:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-02-2018 06:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'll try to do some experimenting later today.

05-02-2018 08:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-02-2018 08:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
To keep things simple I took the file transfer app and ran it essentially as-is and it worked in the emulator but on the Versa did not get beyond "waiting ..."
https://1drv.ms/u/s!AglBpbKyzKIQjIFfRpnA_UCyNHRoXA
(BTW, had 1006 error connecting to the server but eventually it connected).
