8000 Properly start foreground service in example (#764) · samhblee/flutter-webrtc@fc2749b · GitHub
[go: up one dir, main page]

Skip to content

Commit fc2749b

Browse files
authored
Properly start foreground service in example (flutter-webrtc#764)
1 parent dd775c6 commit fc2749b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/lib/main.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ Future<bool> startForegroundService() async {
3232
name: 'background_icon',
3333
defType: 'drawable'), // Default is ic_launcher from folder mipmap
3434
);
35-
return FlutterBackground.initialize(androidConfig: androidConfig);
35+
await FlutterBackground.initialize(androidConfig: androidConfig);
36+
return FlutterBackground.enableBackgroundExecution();
3637
}
3738

3839
class MyApp extends StatefulWidget {

0 commit comments

Comments
 (0)
0