I have a problem with an Ionic 1 project. Native plugin functions only work after closing and reopening app. Example: when I click on a button that should open the inappbrowser, the button does nothing. When I now close the app (press the home button) and open te app again, the inappbrowser is there. This is the same for the socialsharing plugin and the dialog. So it seems to be for all native functions…
It only happens in iOS, Android is fine.
I tried the following to fix it, without success:
- Remove and add the platform.
- Remove and add the plugins.
My ionic info:
Cordova CLI: 6.4.0
Ionic CLI Version: 2.1.8
Ionic App Lib Version: 2.1.4
ios-deploy version: 1.8.5
ios-sim version: 5.0.4
OS: macOS Sierra
Node Version: v5.6.0
Xcode version: Xcode 8.0 Build version 8A218a
cordova-plugin-console 1.0.2 "Console"
cordova-plugin-device 1.1.1 "Device"
cordova-plugin-dialogs 1.2.1-dev "Notification"
cordova-plugin-inappbrowser 1.5.0 "InAppBrowser"
cordova-plugin-network-information 1.2.0 "Network Information"
cordova-plugin-splashscreen 3.2.1 "Splashscreen"
cordova-plugin-statusbar 2.1.2 "StatusBar"
cordova-plugin-whitelist 1.2.1 "Whitelist"
cordova-plugin-x-socialsharing 5.0.12 "SocialSharing"
ionic-plugin-keyboard 2.0.1 "Keyboard"
phonegap-plugin-push 1.6.2 “PushPlugin”
How can I fix this?