Instructions for adding the OneSignal SDK to your Ionic or Capacitor app for iOS, Android Requirements OneSignal Account Your OneSignal App Id, available in Settings > Keys & IDs . Ionic 1 or newer. Cordova 9.1.0 or newer. Capacitor 2.0.0 or newer. iOS Requirements An iOS 9+ or iPadOS device (iPhone, iPad, iPod Touch) to test on. Xcode 14+ simulator works running iOS 16+. A Mac with Xcode 12+. An iOS Push Certificate . Cordova ios@5.0.0 or newer. CocoaPods - Install with the following from the Terminal: Shell sudo gem install cocoapods pod repo update Ionic/Capacitor npm install onesignal-cordova-plugin npx cap sync Ionic + Cordova (Angular) Add OneSignalInit () method in app.component.ts constructor (platform: Platform) { platform.ready().then(() => { OneSignalInit(); //Add this line }); } Add the OneSignalInit() code block to the same file as noted above. import OneSignal from 'onesignal-cordova-plugin' ; On...
On December 23rd, 2019, Apple clarified plans for UIWebView: “The App Store will no longer accept new apps using UIWebView as of April 2020 and app updates using UIWebView as of December 2020.” Please follow the instructions below to either update to a newer version of Cordova or migrate to Capacitor. So there some simple steps to add WKWebview in an existing Ionic 3 and Ionic 4 Application. 1. First make sure Ionic/cli is not less than 3.If you have ionic/cli version less than 3 please update it 3.x or greater any version is ok no need to update it. 2. You need to Update your Cordova from existing version to minimum version (Cordova 9.0.0 ) 3. Update Your all plugins which are installed in you Application with Latest version .Because the older version of cordova plgins uses UIWebview. 4. Run these command to Update your ionic-webview plugin ionic cordova plugin add ...