Cordova plugins only works the second time the app is opened


I have been using ionic in several projects within the last few months and never experienced this kind of issue ! In my current project the app works well except that plugins doesn’t work the first time I open the app. Plugins start to work only when I reopen it after having left the app (using the home screen on ios for exemple) !

My project uses these plugins :

  • org.apache.cordova.inappbrowser
  • cordova-plugin-x-socialsharing
  • cordova-plugin-whitelist
  • cordova-plugin-transport-security
  • org.apache.cordova.statusbar
  • com.ionic.keyboard
  • cordova-plugin-console
  • cordova-plugin-device
  • cordova-plugin-splashscreen

Does anyone have an idea of what this might be due to ?