onInit method
Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.
Implementation
@override
Future<void> onInit() async {
super.onInit();
//presentPinPage();
/*Mirrorfly.getValueFromManifestOrInfoPlist(
androidManifestKey: "com.google.android.geo.API_THUMP_KEY",
iOSPlistKey: "API_THUMP_KEY")
.then((value) {
googleMapKey = value;
mirrorFlyLog("com.google.android.geo.API_THUMP_KEY", googleMapKey);
});*/
googleMapKey = MirrorflyUikit.instance.googleMapKey;
// PushNotifications.init();
initListeners();
mediaEndpoint(SessionManagement.getMediaEndPoint().checkNull());
getMediaEndpoint();
// uploadEndpoint(SessionManagement.getMediaEndPoint().checkNull());
currentAuthToken(SessionManagement.getAuthToken().checkNull());
getCurrentAuthToken();
startNetworkListen();
getAvailableFeatures();
if (MirrorflyUikit.instance.enableLocalNotification) {
NotificationService notificationService = NotificationService();
await notificationService.init();
_isAndroidPermissionGranted();
_requestPermissions();
// _configureSelectNotificationSubject();
unreadMissedCallCount();
_removeBadge();
}
}