New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phonegap v3.x #37
Comments
I can't even install it via the 3.0 CLI tools =\
|
I now got it installed using the following command:
However, the Java Plugin (PushPlugin.java) should be modified: From import org.apache.cordova.api.CallbackContext;
import org.apache.cordova.api.CordovaPlugin; To import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin; I found this by looking at other Phonegap 3.0 JavaPlugins like It would be really great if the docs could be updated. @Hiroio I somehow got around this error by adding following temporary to my android's config.xml:
|
Yeah, it looks like the plugin.xml needs to be updated to avoid installation errors. At a bare minimum...
Docs are behind on the 3.0 plugin changes, so I'm looking at the core plugins as a reference. I'll try to pull together a pull request for plugin.xml changes. |
This error appears on my phone:- error: Class not found For Android! EDIT: I observed that the Push plugin doesn't get copied to the \platforms\android\assets\www\plugins unlike other core plugins. |
@Pragith Try adding the following to
|
@mwager OMG! |
I just submitted a pull request for Cordova and cordova-cli 3.0 issues -- issue #39. |
@mwager have you had any luck with iOS? I'm not getting any errors, but the tokenHandler callback never gets fired now. Edit 1
Edit 2
has been removed and needs to be replaced with something like
This is going to have to wait until tomorrow... |
@Hiroio I didn't try with iOS and pg 3.0 yet since I'm focussed on Android only right now. Think I'll wait to see what's going on here... |
This should all be fixed in my pull request |
I am getting this error after excuted plugman cli and pushplugin.java: Warning: Ignoring platform 'android-10': build.prop is missing. |
@mohan5070 if I had to take a guess, it would be that the v13 support APIs are clobbering the v14 APIs that you apparently already have in your project or something. You probably have to get that sorted out in Eclipse somehow. (Sorry, I'm not going to be of much help there since I've migrated to Android Studio.) |
@jdhiro Thanks. I fixed all the issues. |
I had to change the tag in plugin.xml to a jsmodule tag in order to get the CLI prepare function to install the plugin to the proper location. |
Also, I had to rewrite the plugin JS itself to fit to the new plugin syntax (i.e. it gets wrapped by the cordova fn and put in cordova_plugins.js) Should I send in a pull? I think this may break backwards-compat. |
Is the issue with tokenHandler callback never gets fired on iOS fixed? I tried latest install from phonegap CLI to download the plugin, but the tokenhandler is still not fired. and no error messages at all. |
Guys, is it now safe to use PushPlugin on PhoneGap 3.0 and beyond on Android and iOS ?, what should i do in order to avoid issues? |
If it helps, on this app everything works with the plugin, even with ios7/cordova 3.x.. |
I'd like to reiterate omeriko's question: Is it safe to use PushPlugin with PhoneGap 3.x, and are there any known undocumented caveats? |
i'm on 3.4 and it's working great for me. installed using CLI: cordova plugin add https://github.com/phonegap-build/PushPlugin.git |
I've downgraded to Phonegap 3.4 (20) and still unable to get this plugin working by any method. Everytime I get a class not found error. Anyone any joy or tips? |
Hi all I have the same issue.Some one can help me see the link: http://stackoverflow.com/questions/24839836/salesforce-android-app-remote-access-application-authorization |
Heh guys am getting Register call but when ever i Click it i get Class not Found I manually add the Plugin and is Deploying on my phone but It says class not Fount what should i do.
|
@l-lawliett maybe you should try this:
|
Okay am Gona try that as soon as possible got my mid term coming okay |
@mwager the post above |
I am new Git. Can some one provide me steps to apply patch 39 for this plugin in cordova project? |
Updating Readme
register not defined in PushPlugin.m
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000
} /*
|
Is it possible to use the plugin with phongap v3.x (yet)?
I could'nt get it running, the readme.md seems not to be very helpful here.
Should I use plugman? or does the plugin need upgrading for use via the new node based cli tools? ("cordova plugin add ...")
Tested only on Android yet (phonegap 3.0 on a mac, followed manual install, using cordova-3.0.0.jar)
"adb logcat" output:
Cheers,
Michael
The text was updated successfully, but these errors were encountered: