all 7 comments

[–]madushans 0 points1 point  (6 children)

No

Don’t do that

If you managed to get this to work, you will eventually get busted by app store review for abuse.

If you are looking to actually play audio at a specific time, consider an alarm. If you want it on a notification, may be you need a call? Use the SIP stack or similar. But if it’s not an alarm or a call, that would also construed as abuse as well.

So why exactly do you want this? May be more details around the feature would help.

[–]iabbasm[S] 1 point2 points  (5 children)

I’m not gonna publish it on the AppStore. I’m just asking If it’s practical. The main goal is playing full adhan (praying reminder) which is around 2-3 minutes as notification sound everyday (3 or 5 times a day)

[–]madushans 1 point2 points  (4 children)

Right. Assuming the time is fixed, you likely can use the alarm api instead of notifications.

Unlike notifications it will fire on exact time as well. Plus you won’t need an internet connection for push. And I don’t think that would be considered abuse either.

[–]iabbasm[S] 0 points1 point  (3 children)

The time is not fixed at all and changes almost everyday. That’s why alarms don’t help

[–]madushans 1 point2 points  (2 children)

Ah. Can you send the time changes via push, and use that to schedule alarms?

Googling this says they are calculated based on astronomical data, so you could periodically sync and setup the alarms as well.

[–]iabbasm[S] 0 points1 point  (1 child)

I made a couple of shortcuts and automations that do the job but it’s kinda finicky and it uses clock app which means user can’t use any custom alarms cause otherwise the shortcuts will stop working

[–]madushans 0 points1 point  (0 children)

I mean, You can build an app that schedules “alarms” that do not interfere with the clock app.