Skip to content

Commit

Permalink
Foreground microphone fix (#1797)
Browse files Browse the repository at this point in the history
* Added microphone service type in foreground service

* updated changelog

* released sample app version 1.5.211 (511) 🍀
  • Loading branch information
Decoder07 committed Jul 29, 2024
1 parent 4a60fd5 commit 3cc6bba
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions packages/hmssdk_flutter/example/ExampleAppChangelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ https://app.devrev.ai/100ms/works/ISS-22834
- Noise cancellation layout API
https://app.devrev.ai/100ms/works/ISS-22858

- Sample application not able to access microphone from background in android 14.
https://app.devrev.ai/100ms/works/ISS-22907

Room Kit: 1.1.5
Core SDK: 1.10.5
Android SDK: 2.9.62
Expand Down
4 changes: 2 additions & 2 deletions packages/hmssdk_flutter/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ android {
applicationId "live.hms.flutter"
minSdkVersion 21
targetSdkVersion 34
versionCode 510
versionName "1.5.210"
versionCode 511
versionName "1.5.211"
}

signingConfigs {
Expand Down
4 changes: 2 additions & 2 deletions packages/hmssdk_flutter/example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.5.210</string>
<string>1.5.211</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -48,7 +48,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>510</string>
<string>511</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Future<bool> initForegroundTask() async {
if (isPermissionsGiven) {
FlutterForegroundTask.init(
androidNotificationOptions: AndroidNotificationOptions(
foregroundServiceType: AndroidForegroundServiceType.CAMERA,
foregroundServiceType: AndroidForegroundServiceType.MICROPHONE,
channelId: '100ms_flutter_notification',
channelName: '100ms Flutter Notification',
channelDescription:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ public class SwiftHmssdkFlutterPlugin: NSObject, FlutterPlugin, HMSUpdateListene
return
}

hmsSDK?.preview(role: role) { tracks, error in
hmsSDK?.preview(role: role) { [self] tracks, error in

if let error = error {
print(#function, error)
Expand Down

0 comments on commit 3cc6bba

Please sign in to comment.