inway / flutter_ringtone_player

Simple Flutter plugin to play ringtone, alarm & notification sounds
MIT License
89 stars 57 forks source link

Not able to play sound in ios. #44

Closed jitendramistry1 closed 11 months ago

jitendramistry1 commented 1 year ago

How to play ios sound when app is background. I know its not implemeted in your plugin but i'm curious to know when you going to implement this feature. Thanks in advance.

SPodjasek commented 1 year ago

I don't plan to implement this feature.

The primary purpose of this package is to play notification sounds while the app is in the foreground, as by the time it was written, FlutterFire FCM implementation could not display notifications on received messages while the app was active - if I remember correctly.

Even today, looking at the documentation, you can find this:

The default behavior on all platforms is to display a notification only when the app is in the background or terminated. If required, you can override this behavior by following the Foreground Notifications documentation.

So, it was meant to give your user some sound notification when a new dialog or toast appears. Now I see you can use foreground notifications with FlutterFire messaging package, as from version 6.0.13 it works nicely with flutter_local_notifications package.

shrutika-tatkare-apptware commented 1 year ago

I am able to play sound but not able to keep sound in loop

shrutika-tatkare-apptware commented 1 year ago

Hey. Sound is playing but not able to loop it. can you tell me reason ?

ehsan097 commented 1 year ago

Hi,Im also facing the same issue on iOS.Sound plays once but not in loop.Do You know the reason ?

shrutika-tatkare-apptware commented 1 year ago

Everyone is facing same issue. Please let us know better solution for this. if this plugin not supports then Let me know another one. It's blocker for me really😔😔

github-actions[bot] commented 12 months ago

This issue has stalled.

github-actions[bot] commented 11 months ago

This issue has been closed due to inactivity.