Background alarm clock that starts a loop until the user reads a QR code

Hi.

Look. According to my client's specifications. The app i'm creating, must be able to launch music and a notification, even in airplane mode. If the user does not open the notification, whoever opens the QR reader and reads it, the music and the notification, must continue to infinity.

On Android, I have used a background service and a thread for seconds. With some problems it works fine. But on IOS, I haven't found anything like it. Background Fetch is not reliable for use on an alarm clock with seconds. Local notifications only work once without user intervention, and I need them to work in a loop, even with the screen off, until the QR is read. Putting multiple notifications is not an infinite solution until the QR reading.

I have run out of ideas. Any recommendation? Any ideas please?

Thank you.
Regards.
Alex.


You'd better move your post to the notifications section.

Excuse me, but I'm not looking for a solution for a notification, I'm looking for a solution to reliably run a script containing a loop, from background, at a certain time.


Thank you.

Regards.

Hi, I don't think what you are trying to do is possible due to the iOS background jobs limitations. And with notifications there is no way to do what you want to do in a reliable way, as notifications can only play sound for a limited time.

So I believe what you are trying to do is impossible using the available APIs.
Background alarm clock that starts a loop until the user reads a QR code
 
 
Q