It seems some people work around this by scheduling a OneTimeWorkRequest instead
Thanks - yes, that sounds like it could work great (or as you say there seem to be other options as well). If someone wanted to make a PR to add it to https://github.com/espruino/AndroidBLEAdvertiser I'd be more than happy to pull it in :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks - yes, that sounds like it could work great (or as you say there seem to be other options as well). If someone wanted to make a PR to add it to https://github.com/espruino/AndroidBLEAdvertiser I'd be more than happy to pull it in :)