[only iOS] Error - The following plugin (or plugin version) is not on npm: de.appplant.cordova.plugin.badge@0.7.1

  • 1
  • Problem
  • Updated 5 years ago
  • Acknowledged
hi all
I am using PGB 5.2.0 with gradle build
I am wonder when I install this plugin "de.appplant.cordova.plugin.badge" from npm
only iOS will appear a wrong message (Android and winphone build success)

Error - The following plugin (or plugin version) is not on npm: de.appplant.cordova.plugin.badge@0.7.1

but there is really a npm version
https://www.npmjs.com/package/de.appp...

you can try...
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes

Posted 5 years ago

  • 1
Photo of jcesarmobile

jcesarmobile

  • 283 Posts
  • 40 Reply Likes
can you post your config.xml?
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
hi jcesarmobile
thanks your reply
well...you can just add this line and build it
< gap:plugin name="de.appplant.cordova.plugin.badge" source="npm" version="0.7.1" / >
and you will know what I mean
Photo of Yi Ming Kuan

Yi Ming Kuan

  • 1840 Posts
  • 78 Reply Likes
Hi Colin,

Is this issue still present?

-yiming
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
Hi Yi Ming
about 5 minutes ago
I just try once again
my appid is 697726

npm=>
< gap:plugin name="de.appplant.cordova.plugin.badge" source="npm" version="0.7.1" / >

pgb=>
< gap:plugin name="de.appplant.cordova.plugin.badge" source="pgb" version="0.6.4" / >

pgb version will build success in ios
npm version will build fail in ios

Error - The following plugin (or plugin version) is not on npm: de.appplant.cordova.plugin.badge@0.7.1

but there is really a npm version
https://www.npmjs.com/package/de.appp...

I know it maybe not PGB's problem
because only this plugin will cause this situation
Photo of Yi Ming Kuan

Yi Ming Kuan

  • 1840 Posts
  • 78 Reply Likes
Not sure if it's caused by the plugin naming scheme. I'll take a look into it.

-yiming
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
thank Yiming
probably just like you said (naming scheme problem)
just add 0.7.1 npm version
you will know what I mean
Photo of Yi Ming Kuan

Yi Ming Kuan

  • 1840 Posts
  • 78 Reply Likes
https://github.com/phonegap/build/issues/477

We'll update you when it's fixed on the above link.

-yiming
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
thanks yiming
Photo of Brett

Brett, OFFICIAL REP

  • 547 Posts
  • 54 Reply Likes
this plugin has an iOS dependancy of de.appplant.cordova.common.registerusernotificationsettings, which is not on npm
Photo of ColinBau

ColinBau

  • 730 Posts
  • 18 Reply Likes
thanks Brett
I will inform the author to solve the problem (I hope so...)
https://github.com/katzer/cordova-plu...