Pebble.js WatchApp displays: "Disabled - run the pebble phone app"

I cannot find much documentation on this issue. All other running apps on my shingle have connectivity to my phone and work as expected. However, the Pebble.js app I'm currently working on just displays Disconnected - run the pebble phone app

.

I noticed that in my developer settings, the connection manager is listed as Disconnected

. Is this part of the problem? I don't see anything in the logs.

For reference, the app makes a simple ajax request and displays the result.

+3


source to share


2 answers


This message is often caused by JavaScript crashing on the phone (undefined link, unknown function, etc.), so the watch thinks it is not working.

Some ideas for debugging:



  • Replace the code with one very simple statement console.log("hello world")

    and see if it works.
  • Look at the Logs button ( View Logs

    in CloudPebble or pebble logs

    command line).
  • Rarely, on Android, I've seen a situation where a Pebble app is in a bad state where it can't execute JS for just one app. When this happens, you need to forcefully kill the Pebble app and restart it.
+2


source


I had the same experience.



I usually kill and restart the pebble app on my phone and then refresh the browser. Sometimes you need to log out and then log back in to Cloudpebble.

0


source







All Articles