Search code examples
pebble-watchcloudpebblepebble-js

Pebble JS Menu Items Disappear


Hi I started creating a pebble app using Pebble.JS. I installed the app on my Pebble and I notice that some of the menu items disappear and reappear on their own.

Nothing too fancy about the code:

    for(var i = 0; i < quantity; i++) {
      var rest = data.Result.results[i];
      var showName = rest.shows[0].showName;
      items.push({
        ourid:rest.ourID,
        distance:rest.fmtDistance,
        knownfor:rest.knownForNoHTML,
        title:rest.name,    
        subtitle:showName
      });
    }
                                
                                


Solution

  • I believe what you're seeing is Pebble's handling of menus. From my experience, Pebble.js only displays a few menu items (up to 5 or so?), and will load the other menu items as the user scrolls down to them.

    As long as those items reappear, I'm not sure there's much to be improved.