I have made an app that runs fine on the pebble when the phone is connected and the pebble app is running, but when the pebble app on the phone is closed, the app crashes, doesn't start and gives the error that it is "Disconnected - Run the phone app", until the pebble app is restarted. The app is in pebble.js and doesn't connect to the internet or use any of the phone's APIs, and therefore shouldn't need to connect to the phone's app. How can I make my app run without the pebble app running?
The source code is here, on pastebin.
Note that this question is different from this one
You need to rewrite your application in C. This is currently the only way to write Pebble apps that run without a phone.