• So actually I may have solved my problem entirely, but I'd be happy to hear from people as to why I solved it, because I think I Maxwell Smart'ed / Mr. Magoo'ed my way through it.

    The code I am running now

    Bangle.setUI({mode: "custom", btn: () => {
      Bluetooth.println("");
      Bluetooth.println(JSON.stringify({t:"inf­o",msg:"Hello World"+getTime()}))
      console.log("HELLO");
    }})
    
    function GB(argumentados) {
      g.clear();
      g.drawString(JSON.stringify(argumentados­),0,0,true)
    }
    

    with the android integration uninstalled works PERFECTLY. I noticed that in the android integration there was a random looking Bluetooth.println("") hanging out above the send stuff to gadgetbridge code so I added that to mine, and that made it work. TAH DAH.

    I get the info popup every time on the phone. I get the simulated notifications from GadgetBridge drawn on the screen. It's magnificently simple. I'm very happy.

    Edit: okay it's not EVERY time I press the button that I see the toast message, but it's like 80%. Which is good enough.

About

Avatar for Philip @Philip started