Giter Site home page Giter Site logo

parse-push-plugin's People

Contributors

avivais avatar benjie avatar cookys avatar kmorey avatar malavasi avatar otmezger avatar sydlawrence avatar xydudu avatar

Stargazers

 avatar  avatar

Watchers

 avatar

parse-push-plugin's Issues

GCMSenderId not sent to server

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

Cant receive payload in JS from push notification if app was closed on iOS

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.

Error on Android 6 (API 22) - can't process PN payload on javascript

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.