INNER CODE UNIT · Dart
_MyAppState
mu-fazil-vk/FluxTube · lib/main.dart:61
class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
@override
void initState() {
super.initState();
WidgetsBinding.instance.addObserver(this);
// Initialize services after the first frame
// This ensures the Activity is fully attached and can show permission dialogs
WidgetsBinding.instance.addPostFrameCallback((_) {
DownloadNotificationService().initialize();
// Initialize audio service for background playback notification controls
initAudioService();
// Look for new uploads from subscribed channels. Self-throttling and a
// no-op unless the user turned notifications on.
SubscriptionNotifier().checkForNewVideos();
});
}
@override