17.4 C
London
Tuesday, September 3, 2024

Flutter: Is there a method to “snooze” the web permission popup on iOS?


With the newest variations of iOS, functions that use the web now ask for permission in a pop-up window initially of the app. Is there a method to keep away from this habits, and ask for web permission on a later display screen?

I am utilizing the newest secure model of Flutter: 3.16.9

Thanks.

example

I assumed it was as a result of Firebase packages I had put in, reminiscent of FirebaseAuth or CloudFirestore, however after actually uninstalling them from the challenge it nonetheless asks for web permission initially of the app.

That is my major.dart

void major() async {
  WidgetsFlutterBinding.ensureInitialized();
  SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.gentle);
  await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
  await SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive);
  await Firebase.initializeApp(
    choices: DefaultFirebaseOptions.currentPlatform,
  );

  attempt {
    await FlutterDownloader.initialize(
        debug:
            false, // non-compulsory: set to false to disable printing logs to console (default: true)
        ignoreSsl:
            false // possibility: set to false to disable working with http hyperlinks (default: false)
        );
  } catch (e) {
    print(e);
  }

  if (Platform.isAndroid) {
    PhotoManager.clearFileCache();
  }

  return runApp(
    Phoenix(
      little one: Theme(
        little one: TrackingWrapper(
          little one: AppBlocWrapper(
            little one: AppBuilder(
              builder: (context) => MaterialApp(
                navigatorKey: materialAppKey,
                localizationsDelegates: [
                  AppLocalizations.delegate,
                  GlobalMaterialLocalizations.delegate,
                  GlobalWidgetsLocalizations.delegate,
                  GlobalCupertinoLocalizations.delegate,
                ],
                supportedLocales: [
                  Locale('en'),
                  Locale('it'),
                ],
                debugShowCheckedModeBanner: false,
                initialRoute: "https://stackoverflow.com/",
                onGenerateRoute: (RouteSettings settings) {
                  change (settings.identify) {
                    ...
                  }
                },
              ),
            ),
          ),
        ),
      ),
    ),
  );
}

Latest news
Related news

LEAVE A REPLY

Please enter your comment!
Please enter your name here