I create a blank project in ionic. I also set splash screen in android platform. I can change the timing for this screen. All goes good.
But what if I want to set splash screen from by database at the time of installing this app. Is it possible or is there any other way.
#gautam It's not possible in Ionic or even any other mobile app developement platform
But you can do like reduce the time of splash screen to zero(0) and in device ready function you can call image from your database.
Related
I want to build a Flutter App that can show information in a modalBottomSheet, but outside of the App.
The App should run in the background and when I want it to show something, it should show a modalBottomSheet over the curently used App. It doesn't matter if the user is in a App or just the Homescreen, important is that the App runs from the background and can overlay other Apps.
You could use flutter_overlay_window. It can display your flutter app over other apps on the screen
I came to ask for help because I want to do a native splash screen type in my flutter application. So I want that when I launch my application, I have a page with the logo of my application, a descriptive text, the version number of the application and a loader.
After a lot of research I cannot find satisfactory tutorials. Either there are native splash screens that change the base color when the app is launched and we can just display a logo. Either we create a fake splash screen which is a start page but which is launched after the native start. I don't know if I'm clear ... Voila, but how can we all do it at the same time?
I have created SplashScreens for my Flutter app for both iOS and Android using the native way which is editing the LaunchScreen.storyboard and it is working currently when I run my app but the SplashScreen does not hold long enough and is there a way to programmatically hide the native splashscreen in dart after I am done with some data processing and logic?
The solutions I found online are all flutter apps with SplashScreen that is build using flutter widgets and not the native way...
Even if you build the splash screen if Flutter, you still need to set one in via XCode. Otherwise, the app loads with a momentary plan white screen and Apple rejects it.
If you want to extend the time till the moment data process is over, then you will have to make a replica of LaunchScreen.storyboard in Flutter. The data processing and logic are written in Flutter. There's no way it can tell LaunchScreen.storyboard "I am done". What you can do is though, make a splash screen in Flutter which will look like LaunchScreen.storyboard. And once the data processing is done, you can navigate the user to the desired screen. Since the two screens are same, use won't see the difference and the app will smoothly show the next screen.
Just a word of caution - be careful about extending the timing of launch screen. Apple may reject the app. See if something can be done after the screen load. You can use flutter after layout package for this or the below line will do the trick :
WidgetsBinding.instance
.addPostFrameCallback((_) => myFunction(context));
This thread may help you to delay the screen for XX seconds.
I'm developing an app that works with sensitive information.
One of the requirements is that when a user puts the app in background the content that the app is currently displaying has to be hidden, so if another person navigate through the apps in background he can't see the last screen where the user was.
Any ideas on how to do that?
I tried to show an overlay when the app moves to AppLifecycleState.paused, but it doesn't work for me, the app prints a message if I want but it can't update the UI.
Edit
Shameless plug: i did a library for doing just that as I also needed it:
https://pub.dev/packages/secure_application
Answear
Build is not called after paused, at least on Android.
For Android I used a flutter_windowmanager package (modified to still be able to build on IOS):
https://github.com/neckaros/flutter_windowmanager
When my app need securing I add the flag secure:
FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE)
And my app is now a black screen in the app switcher.
You should still hide content your way for when the user get back to the app.
Otherwise you can go native:
https://medium.com/#mehmetf_71205/securing-flutter-apps-ada13e806a69
When I run flutter app it delays for few seconds shows just white screen and then the main page is shown. How can i fix it
There is an entry in the docs about the launch screen.
https://flutter.io/docs/development/ui/assets-and-images#updating-the-launch-screen
Basically you can provide an image to be shown while flutter loads. The framework is not ready at that point though, so this is done on the platform side.