Open leegohi04517 opened 3 years ago
I know that Flutter Sound can do that without any difficulty. My own App uses Flutter Sound in the background or when the screen is locked.
Unfortunately I do no remember what I did for that. The only thing I remember is that it was very simple. Probably an option in XCode.
Here is my own info.plist, but I cannot say if there is something inside relative to this issue. Maybe someone else can help you ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
<string>com.dyglot.DyglotKorean</string>
</array>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLocalizations</key>
<array>
<string>en</string>
<string>fr</string>
<string>ko</string>
<string>ja</string>
</array>
<key>CFBundleName</key>
<string>com.dyglot.DyglotKorean</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppleMusicUsageDescription</key>
<string>Dyglot does not need this permission</string>
<key>NSCalendarsUsageDescription</key>
<string>Dyglot does not need this permission</string>
<key>NSCameraUsageDescription</key>
<string>Dyglot does not need this permission</string>
<key>NSContactsUsageDescription</key>
<string>Dyglot does not need this permission</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Dyglot does not need this permission</string>
<key>NSMicrophoneUsageDescription</key>
<string>Dyglot wants to access your microphone</string>
<key>NSMotionUsageDescription</key>
<string>Dyglot does not need this permission</string>
<key>NSSpeechRecognitionUsageDescription</key>
<string>Dyglot does not need this permission</string>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
<string>processing</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Dyglot needs access to location when open.</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Dyglot needs access to location when in the background.</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Dyglot needs access to location when open and in the background.</string>
</dict>
</plist>
Duplicate [#525]
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.
I need Help for :
Using the API ? flutter_sound: 6.4.5+1
Generate an iOS or Android App ?
iOS App
Debugging my App ?
Other ?
Here is my question :
How to keep playing sound when app goes into background or lock screen?