I am developing an app using Cordova, Angular and Ionic. I have a problem with the phonegap push plugin and I've searched a lot but no solutions found.
I use cordova 5.4.1 and phonegap-plugin-push 1.5.3. When I run the app on iPad or emulator from Xcode, logs throws this error:
ERROR: Plugin 'PushPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
[CDVCommandQueue executePending] [Line 159] FAILED pluginJSON = [
"PushPlugin938856013",
"PushPlugin",
"register",
[{
"ecb":"onNotificationAPN",
"alert":"true",
"badge":"true",
"sound":"true"
}]
]
I've reinstalled the plugin several times, removing/ adding the ios platform, and nothing works. I`ve also tried adding on config.xml lines like:
<feature name="PushPlugin">
<param name="ios-package" value="PushPlugin" />
</feature>
But doesn't work.
I've read for including PushPlugin.m in build phases on Xcode and PushPlugin.h in plugin forlder too, but both alredy in. I can see how Xcode is compiling the plugin (and generating some warnings ), everything seems normal, but for some reason it can't be included on the app.
Like I've said, I've wasted a lot of time searching and trying solutions, but nothing works.. Could anybody help me, please?