Is there any trick today to produce a notification sound (notification sent via Firebase) that play forever until the user open the app ?
I do it in B4A using Mplayer loop. When I developed the B4i version of the app some years ago, I knew there was not an equivalent, so I've create a custom sound that play for 20 seconds.
20 seconds is not forever but it was a workaround. Now I see that the 20 seconds sound is interrupted quickly (5/6 seconds) and no longer looks like a long sound.
Nothing to do than accept it ?
You can loop around. Get the push nottification play the sound and in 10 seconds make an MQTT post to an MQTT backend. Modify the software that sends the notification by @Erel to connect to the same MQTT Server and when it receives this Payload, after 10 seconds send a new notification and... "around, around, we go...".
You can loop around. Get the push nottification play the sound and in 10 seconds make an MQTT post to an MQTT backend. Modify the software that sends the notification by @Erel to connect to the same MQTT Server and when it receives this Payload, after 10 seconds send a new notification and... "around, around, we go...".
Also make sure that you have understood I did not read your initial message completely before answering, so re-evaluate the times mentioned in my message... ??
This tutorial explains how you can use push notifications that don't show any visual cue to the user and start your app in the background for a limited time (up to 30 seconds). You can use it for example to download new content. Make sure to start with standard push notifications...
Indeed this is a problem. But you can tell your users never to kill your app but keep it in the background (I mean not physically sending it off-screen by swipping).
Indeed this is a problem. But you can tell your users never to kill your app but keep it in the background (I mean not physically sending it off-screen by swipping).
Maybe you can check if it is activated from your backend (maybe send a silent notification and wait for an mqtt report "I am ready" in your backend and if you do not receive it sends simple notification reminding them to open the app and put it in the background). This is just a workaround.
Well, this open the door to another issue: when you are not using your device (screen black, device is on the table) after some time it enters in a sort of energy saving mode so that you may encounter delays in receiving notifications. So my server doesn't receive immediatly the "I'm ready" message and an unwanted behaviour is triggered.
But to be honest I never tryed with silent notification , maybe they have a higher priority than standard notifications and your suggestion works.
I'll give it a try, thanks a lot for your support.