made-with-future / parse-push-plugin Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mypark/parse-push-plugin
Phonegap 3.0.0 plugin for Parse.com push service
This project forked from mypark/parse-push-plugin
Phonegap 3.0.0 plugin for Parse.com push service
the install instructions should include this command
#import <Parse/Parse.h>
The plugin installs fine and forwards installation data to the Parse Server (self hosted) but it doesnt come with the GCMSenderId for android. I even tried installing it with the official phonegap push plugin just to see if it works.. no diffrence
This is my callback in JS for PN:
parsePlugin.register({appId:"myAppID", pushOpen: "onNotification" , server: "https://www.parse.com" ,clientKey:"myClientKey", ecb:"onNotification"},
function() {
//do some stuff when register
}, function(e) {
});
The function onNotification
will run either with the ecb
AND pushOpen
callback. The pushOpen
callback is never called, tho. I guess this is the one that will trigger if the app has been closed and opens from a push notification.
We repaired this code for Android, it works fine there and we needed to touch the java code. Anyone is able to repair this functionality for iOS?
thanks.
the line
return YES
broke my app. The function in Xcode already included this line, so no need to include this in the tutorial.
Hi,
I found a problem with this plugin using Android 6 (compiled with API 22). I found 2 ways of using this plugin:
*A) Initialise on Java *
When I initialise the parse plugin from MainApplication.java I do receive the push notification sent from Parse, but I can’t process it’s payload from javascript.
The code for registering in Javascript returns with a alert. error registering device: java.lang.IllegalStateException:ParsePlugins is already initialised
... Why can't I register the plugin with parse with JavaScript?
B) Initialise ONLY on JavaScript
On the other hand, if I initialise the parse plugin from javascript alone with the register function, I do get push notifications and can process it's payload as long as the app is running. If the app is in background or closed, the app crashed even before the notification arrives.
This is the crash error :
java.lang.RuntimeException: Unable to create service com.parse.PushService: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context com.parse.ParsePlugins$Android.applicationContext()' on a null object reference
Any idea on how to solve this?
Thanks
should be
cordova plugin add https://github.com/thefuturehaus/parse-push-plugin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.