Pixel "Now Playing" and the Bangle Notifications

Posted on
  • Hey,

    I'm still loving my Bangle but one thing that bothers me all the time is the "wrong" message handling for the "Now Playing" song recognition on my pixel phone.

    I looked through the files and am thinking about trying some thing to change it but I can't help myself to be stuck on deciding where to add it properly lol.

    Maps and Music playbay hook into the messagegui before the "showmessage" is fired. And they even get another notify signal all together with a custom id.

    The problem with the track recognition via now playing is, its message is not as unique as we'd need I guess. They look like this:

    notify {
      "t": "notify",
      "id": 1729922080,
      "src": "Android System Intelligence",
      "title": "\"Open Your Eyes\" von Guano Apes",
      "subject": "",
      "body": "Tippen, um deinen Titelverlauf anzusehen",
      "sender": ""
     }
    

    As you can see they are even translated already and nothing is standardized. Even the src is garbage for using it properly because this is used by other google services most likely.

    So, perhaps Gordon has a clever idea to get this implemented, so the displaying of the message is more useful visually.

    Imho the title should be the artist, the body should be the track title and we are golden :)

    sounded like an easy task at first "if src=nowplaying { change title; change body }

    thoughts and ideas?


    1 Attachment

    • bangle-now-playing.jpeg
  • That's a pain - I can't think of anything super obvious I'm afraid.

    You could detect if src=="Android System Intelligence" and also title contains quotes? It's a shame it's translated as we'd have to include translations for by for each language I guess.

    To handle it, having some boot code that just does:

    Bangle.prependListener("message", (type, msg) => {
      // ...
    });
    

    should work for you I think?

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

Pixel "Now Playing" and the Bangle Notifications

Posted by Avatar for Karsten @Karsten

Actions