Error installing Onesignal plugin on iOS platform using IONIC FRAMEWORK

Asked

Viewed 258 times

2

I’m developing an app using Ionic framework, but when adding the Onesignal plugin on iOS platform I’m having some errors:

"Failed to install 'onesignal-Cordova-plugin': Undefined (Node:3302) Unhandledpromiserejectionwarning: Unhandled Promise rejection (rejection id: 1): Version should contain only Numbers and Dots"

I’ve already made some commands like:

sudo gem install cocoapods
prod repo update

But I didn’t succeed.

Someone would have some hint of what I should do to install Onesignal?

1 answer

2

Try to do these procedures

cordova platform remove ios
cordova platform remove onesignal-cordova-plugin
sudo gem install cocoapods
pod repo update
pod setup (caso precise sincronizar o repositório CocoaPods)
cordova plugin add onesignal-cordova-plugin --save
cordova platform add ios

Browser other questions tagged

You are not signed in. Login or sign up in order to post.