iphone - "PushPlugin not found" using Cordova 2.5 for iOS -


i using pushplugin https://github.com/phonegap-build/pushplugin , cordova 2.5 ios applicaiton.

in plugins folder have these files:

  • appdelegate+notification.h
  • appdelegate+notification.m
  • pushplugin.h
  • pushplugin.m

in config.xml have included plugin this: <plugin name="pushplugin" value="pushplugin" />

i have pushnotification.js in www folder , included in index.html.

when run application , execute line in push.js file:

pushnotification.register(this.tokenhandler,this.errorhandler, {"badge":"true","sound":"true","alert":"true","ecb":app.onnotificationapn"});

then error:

error: plugin 'pushplugin' not found, or not cdvplugin. check plugin mapping in config.xml

is pushplugin compatible cordova 2.5?

i had same issue when trying pushplugin work. got working putting block of code inside config.xml (not 1 in www folder, 1 in project folder)

<!-- ios --> <platform name="ios">      <config-file target="config.xml" parent="/*">         <feature name="pushplugin">             <param name="ios-package" value="pushplugin"/>         </feature>     </config-file>      <source-file src="src/ios/appdelegate+notification.m" />     <source-file src="src/ios/pushplugin.m" />      <header-file src="src/ios/appdelegate+notification.h" />     <header-file src="src/ios/pushplugin.h" />  </platform> 

if download sample project git, there's file called plugin.xml has bunch of stuff needs added xml (i think).

hope helps.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -