havesource / cordova-plugin-push

Register and receive push notifications
MIT License
149 stars 283 forks source link

Failed to plugin for iOS platform #255

Open srinich-dev opened 11 months ago

srinich-dev commented 11 months ago

Bug Report

cordova plugin add @havesource/cordova-plugin-push

above command failed with below error for iOS platform

Cannot find plugin.xml for plugin "cordova-plugin-push". Please try adding it again.

Expected Behaviour

Should be able to add plugin

Actual Behaviour

Not able to add plugin

Reproduce Scenario (including but not limited to)

Try adding plugin is failing

Steps to Reproduce

cordova plugin add @havesource/cordova-plugin-push

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

cordova platform version ios

Installed platforms: ios 7.0.1

(Android) Device Vendor (e.g. Samsung, HTC, Sony...)

cordova info Printout

Node version: v18.15.0

Cordova version: 8.1.1

Config.xml file:

<?xml version='1.0' encoding='utf-8'?>

xxxx xxxxx/description> xxxxx/author> #FFFFFF

Plugins:

@havesource,cordova-plugin-add-swift-support,cordova-plugin-androidx-adapter,cordova-plugin-app-version,cordova-plugin-console,cordova-plugin-device,cordova-plugin-dialogs,cordova-plugin-file,cordova-plugin-file-opener2,cordova-plugin-inappbrowser,cordova-plugin-media-capture,cordova-plugin-network-information,cordova-plugin-ns0m-file-transfer,cordova-plugin-safariviewcontroller,cordova-plugin-statusbar

iOS platform:

Xcode 13.4.1 Build version 13F100

Sample Push Data Payload

Sample Code that illustrates the problem

Logs taken while reproducing problem

Cannot find plugin.xml for plugin "cordova-plugin-push". Please try adding it again.

ondrakoupil commented 10 months ago

I ran into this issue as well. The problem was in cordova-cli version - the plugin needs at least version 10. You have 8.11.

geoidesic commented 3 months ago

Nope. Same problem on 12.0.0 (cordova-lib@12.0.1)