Closed hardikjain29 closed 3 years ago
Hi, @hardikjain29 the iOS is still under development.
Ohh okay! Waiting eagerly for it. Wish I could help here! 😕
Thanks a lot!
I have updated the plugin to v1.7.0. I struggled a lot with the sound for iOS. firstly iOS doesn't allow you to control the notification sound so adding making it loop is difficult. secondly, I realized i cant use a custom sound longer than 30seconds because the sound ends as soon the notification banner slides out. If there was a way to create a custom push notification banner that stays at the top until you dismiss it, i think that will enable the sound to last longer.
Try out the alarm app on your iPhone and you'll see that the notification banner doesnt close thereby allowing your phone to keep beeping until you dismiss the notification.
Ohh, that's a bummer! Very sad that Apple doesn't allow this.
I had a thought as you said if the notification banner can stay longer, the sound could last longer, for that what I did was go to the app settings > Notification > Banner > Persistent. This will not make the banner(notification) go away until the user slides it up. But that didn't make it sound longer. (loop_sound: true
)
I tried doing something on the iOS code side but no luck. After that I read some places and found out that Apple might be using an internal private API to make the alarm notification sound longer. They apparently don't want to expose that.
Altogether, thanks a lot for trying this out, I'll also try contributing if something strikes me and I am able to make it work.
Hola! So here's the deal, between open source and my day job and life and what not, I have a lot to manage, so I use a GitHub bot to automate a few things here and there. This particular GitHub bot is going to mark this as stale because it has not had recent activity for a while. It will be closed if no further activity occurs in a few days. Do not take this personally--seriously--this is a completely automated action. If this is a mistake, just make a comment, DM me, send a carrier pidgeon, or a smoke signal.
Closed due to inactivity. Holler if this is a mistake, and we'll re-open it.
Just hollering to say I'd love a way to loop the sound, I'd contribute if I knew how to do it in iOS :)
First of all, thank you so much for this package!
I have an issue on iOS, even when I pass
loop_sound: true
the notification sound doesn't keep ringing.Do I have to pass anything else to it?