3

I can't find much documentation around this issue. All other running apps on my pebble have a connection to my phone, and work as expected. However, a Pebble.js application I'm currently working on simply displays Disconnected - run the pebble phone app.

I have noticed that in my Developer Settings that the Connection Manager is listed as Disconnected. Is this part of the problem? I see nothing in the logs.

For reference, the application is doing a simple ajax request and displaying the result.

bvulaj
  • 5,023
  • 5
  • 31
  • 45
  • What is the name of your app? I had a question mark in the `longName` and `shortName` for my app. For some reason Android couldn't handle that and it broke the app. I contacted the PebbleJS developer and he fixed the bug, and it works now. – Ravin Sardal Jan 15 '15 at 20:14

2 Answers2

2

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

Some ideas to debug this:

  • Replace your code with one very simple console.log("hello world") statement and see if this works.
  • Look at the Logs (View Logs button in CloudPebble or pebble logs on the command line).
  • Very rarely, on Android, I have seen situation where the Pebble app is in a bad state where it cannot execute the JS for only one app. When this happens, you need to force-kill the Pebble app and relaunch it.
sarfata
  • 4,625
  • 4
  • 28
  • 36
  • Thanks for the response. I almost feel like it's your last bullet point. Is there a good way to force kill the app? – bvulaj Nov 05 '14 at 18:04
  • 1
    What I do on my Nexus 5 is: Press the "Windows" (or Tasks) button on the bottom right on the screen to get the list of all the apps currently running; long press on the Pebble app; click "App Info"; click "Force Stop". This is the only way that I know works well. – sarfata Nov 06 '14 at 05:45
  • That seems to help this along. Restarting the watch in coordination with that seems to usually do the trick. – bvulaj Nov 06 '14 at 15:27
  • If that happens often, and/or if you have a way to reproduce this we would really appreciate you sending your source code and information on reproducing this to devsupport@getpebble.com - It will help fix the bug! thanks! – sarfata Nov 07 '14 at 01:10
  • Hey @sarfata - I will get around to that sometime in the next few days here. I don't have exact steps to reproduce, but it happened very often, mostly after deploying once or twice. – bvulaj Nov 07 '14 at 15:49
0

I have had the same experience.

I usually kill and restart the pebble app on my phone and then I also do refresh the browser. Sometimes you have to log out of and then log back into Cloudpebble.

Ilias Bennani
  • 237
  • 2
  • 11