Skip to content

Commit c8683bf

Browse files
Brazolrenefloor
andauthored
fix(llc): fixes for input/output device setting on web (#1086)
* fixes for input/output device setting on web * changelog * camera selection fix * fix * tweak * only show buttons when app has permissions * fix --------- Co-authored-by: Rene Floor <rene.floor@getstream.io>
1 parent 1769457 commit c8683bf

File tree

16 files changed

+399
-46
lines changed

16 files changed

+399
-46
lines changed

dogfooding/lib/screens/home_screen.dart

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ class _HomeScreenState extends State<HomeScreen> {
4242
@override
4343
void initState() {
4444
if (CurrentPlatform.isMobile || CurrentPlatform.isWeb) {
45-
[
46-
Permission.notification,
47-
Permission.camera,
48-
Permission.microphone,
49-
if (CurrentPlatform.isAndroid) Permission.phone,
50-
].request();
45+
() async {
46+
await [
47+
Permission.camera,
48+
Permission.microphone,
49+
if (CurrentPlatform.isAndroid) Permission.phone,
50+
Permission.notification,
51+
].request();
52+
}();
5153

5254
StreamVideoPushNotificationManager.ensureFullScreenIntentPermission();
5355
}

0 commit comments

Comments
 (0)