forceUpdateCheck static method
dynamic
forceUpdateCheck()
Implementation
static forceUpdateCheck() async {
///before using this functions please do setup for android and ios firebase setup and also
///add option file
///add this in main functions
///
/// await Firebase.initializeApp(
/// options: DefaultFirebaseOptions.currentPlatform,
/// );
///class DefaultFirebaseOptions {
/*
// static FirebaseOptions get currentPlatform {
// // if (kIsWeb) {
// // return web;
// // }
// switch (defaultTargetPlatform) {
// case TargetPlatform.android:
// return androidNew;
// case TargetPlatform.iOS:
// return ios;
// default:
// throw UnsupportedError(
// 'DefaultFirebaseOptions are not supported for this platform.',
// );
// }
// }
//
//
//
//
//
//
// static const FirebaseOptions androidNew = FirebaseOptions(
// apiKey: 'your api key', //addd from firebase console project setting
// appId: 'your app id',
// messagingSenderId: 'send id ',
// projectId: 'project id',
// );
//
//
// }
///
///
//
*/
final remoteConfig = FirebaseRemoteConfig.instance;
remoteConfig.fetch().whenComplete(() => getPackageInfo(remoteConfig));
remoteConfig.onConfigUpdated.listen((event) async {
getPackageInfo(remoteConfig);
});
}