Search code examples
androidiosionic-frameworkionic4ionic-native

Change Splash Screen Programmatically in ionic 4


I have a challenge to change Splash dynamic. Server upload Image and I show as a splash. there are some points

  1. show splash instead of default splash.
  2. download image from URL and store in App or local Storage.
  3. Hit to the server and store every time image.

Kindly help me to resolve this challenge.

I find the solution like download image. but how to store in ionic storage. Show Image instead of default splash.


Solution

  • I find the solution. Like I use the "file" plugin to get "dataDirectory" path like "file:///data/user/0/com.ecomplanners.nawarco/files/" from the android device and same my downloaded file. and this path set in local storage.

    If path exists then show this image like a splash instead of default splash.