Ionic Native + IOS + OneSignal

“onesignal-cordova-plugin” plugin working fine with android platform but
during with IOS platform installation throw error

plugin = ionic cordova plugin add onesignal-cordova-plugin
npm install --save @ionic-native/onesignal

Devangs-Mac-mini:ion-signal devang$ ionic cordova plugin add onesignal-cordova-plugin --save
> cordova plugin add onesignal-cordova-plugin --save
:heavy_multiplication_x: Running command - failed!

[ERROR] Cordova encountered an error.
** You may get more insight by running the Cordova command above directly.**


[ERROR] An error occurred while running cordova plugin add onesignal-cordova-plugin --save (exit code 1):


** Installing “onesignal-cordova-plugin” for ios**
** Failed to install ‘onesignal-cordova-plugin’: undefined**
** Error: Version should contain only numbers and dots**

Run

directly and report what happens.

thanks @Sujan12

i have already tried.
but same error. :worried:

my system info

global packages:

@ionic/cli-utils : 1.1.2
Ionic CLI        : 3.1.2

local packages:

@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-ionic-angular : 1.3.1
Ionic Framework                 : ionic-angular 3.4.2

System:

Node       : v6.10.0
OS         : macOS Sierra
Xcode      : Xcode 8.2.1 Build version 8C1002 
ios-deploy : 1.9.1 
ios-sim    : 5.0.13

After install latest ionic, :slight_smile:
the problem is solved,
now my updated system info is given bellow

global packages:

@ionic/cli-utils : 1.4.0
Cordova CLI      : 7.0.1 
Ionic CLI        : 3.4.0

local packages:

@ionic/app-scripts              : 1.3.12
@ionic/cli-plugin-cordova       : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms               : none
Ionic Framework                 : ionic-angular 3.5.0

System:

Node       : v6.10.0
OS         : macOS Sierra
Xcode      : Xcode 8.2.1 Build version 8C1002 
ios-deploy : 1.9.1 
ios-sim    : 5.0.13 
npm        : 5.0.3

Hello,
please i have the same probleme and i get the same error ,
i followed your solution and i updated ionic to the latest verison , but still not working, any help please ;
here is my ionic info :

MacBook-Pro-de-Mac:testPushios mac$ ionic info

cli packages:

@ionic/cli-plugin-cordova       : 1.5.0 (/Users/mac/Desktop/testPushios/node_modules/@ionic/cli-plugin-cordova)
@ionic/cli-plugin-ionic-angular : 1.4.0 (/Users/mac/Desktop/testPushios/node_modules/@ionic/cli-plugin-ionic-angular)
@ionic/cli-utils                : 1.6.0 (/Users/mac/Desktop/testPushios/node_modules/@ionic/cli-utils)
ionic (Ionic CLI)               : 3.6.0 (/Users/mac/Desktop/testPushios/node_modules/ionic)

global packages:

Cordova CLI : 6.5.0 

local packages:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : ios 4.3.1
Ionic Framework    : ionic-angular 3.6.0

System:

Node       : v6.9.4
OS         : macOS Sierra
Xcode      : Xcode 8.3.2 Build version 8E2002 
ios-deploy : 1.9.1 
ios-sim    : 5.0.13 
npm        : 5.3.0

please set your iOS platform path and install pod
after then try to install plugin.

iOS platform path set in CLI
pod init
pod install
podfile configuration (if needed)
firebase use then put in podefile
- pod ‘Firebase/Core’
- pod 'Firebase/Messaging’
- pod ‘Google/CloudMessaging’
command run “pod install”
if required install “sudo gem install cocoapods”