I agree that we shouldn't duplicate code, I only made my own version rather than changed the Android app so I could go back to the standard one if I needed to (i.e. when I mucked it up!).
The Overlay Notification is coming together well, at least well enough for a first version.
I really like the idea of adding something that a custom app can tie into, but would fall back on the default if nothing is there.
Let me see if I understand @rigrig's idea:
A message is sent from Gadgetbridge to the Bangle
The Android app receives the Gadgetbridge message
The Android app emits a signal saying it has a new message.
THEN
A custom app acts on the signal, doing whatever it does.
The Android app sees that something acted on the signal, and does nothing else.
OR
Nothing receives the signal
The Android app sees that nothing acted on the signal, and launches the default app.
I'll have a go at incorporating that into the Android app code and trying it!
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 for your input everyone.
I agree that we shouldn't duplicate code, I only made my own version rather than changed the Android app so I could go back to the standard one if I needed to (i.e. when I mucked it up!).
The Overlay Notification is coming together well, at least well enough for a first version.
I really like the idea of adding something that a custom app can tie into, but would fall back on the default if nothing is there.
Let me see if I understand @rigrig's idea:
THEN
OR
I'll have a go at incorporating that into the Android app code and trying it!