Answer the question
In order to leave comments, you need to log in
How to visually display information to the user with a notification?
Greetings, Toaster readers, I have been writing under IOS quite recently, before that I worked with Android. The essence of the task is as follows - there is a certain application that, by coincidence of some circumstances, notifies the user with a notification, the user cannot miss this notification (important). In Android, this is done simply - since there is a notification icon in the status bar, he always sees it + using flags, you can set the notification as important (the melody will play cyclically until the user clicks on the notification). In IOS I use local notification - here, as I found out, the sound file is no longer than 30 seconds, the notification itself is hidden in the "Notification Center" after 5 seconds. Just playing the sound separately is a bad option (the user may not understand where it comes from and what it is, because he does not see the notification), to repeat the notification every 30 seconds - it's kind of strange. I searched on github - all implementations do not work in the background (with a high degree of probability, at the time the notification is received, the phone will be blocked or the application will be minimized). A good option would be to play a sound + local notification with the "Warning" type, and not "Banner", but as it turned out, only the user can change these settings.
Maybe I don't know something, I missed something? Maybe there are some specialized solutions?
Answer the question
In order to leave comments, you need to log in
You can ask the user for permission to send notifications of the "Warning" type, and he has the right to send you or agree. There are no other options.
I downloaded a couple of alarm clocks - One shows a notification without sound and plays music in the background (I missed the moment the notification was shown and you won’t understand where the sound came from), the second one shows the notification, plays a sound file through it for 30 seconds, after 30 seconds it deletes the notification and shows it again. Apparently this option is the best, you have to cut the ringtones ..
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question