play loop ringtone in background -Flutter iOS- - flutter

I want the audio service to play a custom ringtone that loops when I get a notification on iOS or Android. The sound worked flawlessly in both the background and foreground on Android, as well as in the foreground but not in the background on iOS.
I activated the background mode in iOS (background sound, fetch background notifications).
i tried using the plugins such as : audio_service , audio_manager( audio manager shows audio bar in notification drawer - i want to hide that audio bar - ).
So, any ideas or solutions for this problem?
thanks.

Related

Flutter Just Audio background Package

When play any song then close the app with background playing after that start the app then recent playing song activity show, this good but i wanna that when start the app then app reload, how's possible?
Just audio dont work in background use this just audio background or audio_service is too much advanced or audio player ;
dont forget to add background mode in Xcode :
Hope it work for you ; Good luck

Is it possible to set a custom notification sound instead of default with cordova-plugin-geofence

My requirement is to set a custom notification alert tone in ionic 3 but the plugin documentation does not provide sound parameter in notification object while Localnotification plugin provies.
I have tried to do it using audio plugin inside onTransitionReceived() method.Now the audio is playing while app is in foreground but not working while the app is in background?
Is there any solution to do it??

iphone ios8 - playing audio in background iOS8

All:
I have had many apps that play audio in the background when the user hits the home button or puts the phone to sleep. These apps have worked for years from iOS4 through iOS7.
Now in iOS8 the background audio playing sometimes works and sometimes doesn't. I have not changed any code in the apps. Is there something that has changed with iOS8 that has stopped apps from playing audio in the background?
Thanks

Disable audio recording notification while application is in background on iOS SDK 4.2+

In my project, where we use pjsip2 to receive streaming audio from a shared server.
The app is meant to only receive streaming audio, not record.
However even though we have disabled the mic in out code we still get a notification of the app recording while it is in the background (top bar flashing red with text: " (recording)").
How can I disable the recording notification while our app is running in the background?
Remove the audio option from info plist for UIBackgroundModes
Example:
<key>UIBackgroundModes</key>
<string>voip</string>

How does GuitarToolkit show a persistent active banner when in background?

I have GuitarToolkit on my iPhone4S (iOS 5.01 - NOT jailbroken) It has a metronome feature which continues playing in the background, and also adds a red banner overlay (see screenshots) which persists on the home/lock screen and also when other apps are running. The banner is animating (background colour pulses) and it is also 'active' in that pressing it will return you to the GuitarToolkit app.
I know about the background audio APIs for the sound, but how does it do this banner? My first thought was local notifications, but nothing appears in notification center, and GuitarToolkit is not listed under Notifications in Settings.
My iPhone is not jailbroken and GuitarToolkit is available in the App Store, so what APIs is it using to achieve this?
Having an active AVAudioQueue creates that banner.
The banner appears because it’s got an open audio recording session—you’ll notice that the system Voice Memos app does the same thing, as does Shazam for a moment before it enters the background and Skype when you’re on a call with the app in the background. I’m not sure of the specific API, but that’s generally what’s going on.