App not appearing in Settings

Posted on
  • Apologies if this has been asked before. I'm trying to develop my first app that has a settings file that can be accessed from the Settings > Apps menu.

    I'm following the instructions on https://www.espruino.com/Bangle.js+App+S­ettings and building the app in my branch of the app loader.

    The app installs on my JS2 ok, but even after a reboot, my app isn't showing up in the Settings > App menu on my watch.

    Is there a common likely error that I've made? (My app is here: https://github.com/blogmywiki/BangleApps­/tree/master/apps/suw )

  • This looks good to me... Maybe you could check with the Web IDE in the 'Storage' menu to check that suw.settings.js has uploaded?

    The Settings app simply scans for any xyz.settings.js files and fills the menu with them, so as long as that file exists it should get put in the menu

  • Actually, I have some idea that may help.

    If you look at the top right of https://github.com/blogmywiki/BangleApps­ (or even the page you linked) there's a red cross.

    • Click it
    • Click 'details' next to the red cross in the drop-down
    • Look at the log file

    And it says:

    ERROR: App suw's suw.settings.js is a JS file but isn't valid JS
    

    If you view the file in the Web IDE you'll see there are some errors marked there too. The file may have failed to upload because it had syntax errors. Fix those and you should be good :)

  • Amazing! Thank you Gordon for such a swift reply.

  • Thank you again @Gordon, I'm making progress now. I've still got loads of bugs to fix, but it's appearing in the menu now. As well as the syntax errors, another problem was that I still had an out-of-date application settings JSON file stored on the watch that I had manually uploaded when testing :)

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

App not appearing in Settings

Posted by Avatar for blogmywiki @blogmywiki

Actions