Code Monkey home page Code Monkey logo

Comments (8)

RavindraChherke avatar RavindraChherke commented on August 22, 2024

Crashing in my app too. Push works on Nexus 5 (Marshmallow 6.1) but crashing on other devices (Lava android one).

from gcmpush.

m1ga avatar m1ga commented on August 22, 2024

My device is a HTC A9 (Andorid 6) and it used to work there too. I even recorded a video two weeks ago showing the push feature 😄

from gcmpush.

DFoxinator avatar DFoxinator commented on August 22, 2024

@m1ga

I'm having a very weird issue surrounding this area of the code too and it seems too close to be coincidental. All of a sudden (starting a few days ago), my app has started crashing a lot with:

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
    at nl.vanvianen.android.gcm.GCMIntentService.onMessage(GCMIntentService.java:105)

We didn't make any changes to our push notif implementation and although we released a new build a few days prior to the start of the error happening a lot, we didn't change anything with push notifs.

It makes me think something had to change on the Google side or Android or something...

Does anyone have any insight into this?

from gcmpush.

DFoxinator avatar DFoxinator commented on August 22, 2024

I'm also seeing this same error, "google.sent_time expected String", in addition to the one I posted above. I'm really not sure what happened here.

from gcmpush.

DFoxinator avatar DFoxinator commented on August 22, 2024

This PR fixes the issue: #46

But still not clear why it started happening.

from gcmpush.

skypanther avatar skypanther commented on August 22, 2024

Sorry, the PR to this repo was a mistake. I meant only to merge the fix posted here to my own fork of the repo. For those of you not able to build the module from source, you'll find a compiled version in the dist folder of my fork with the version number set to 1.5 (yeah, I know that's behind this repo's version number)

from gcmpush.

morinel avatar morinel commented on August 22, 2024

Fixed in release 1.7

from gcmpush.

AppWerft avatar AppWerft commented on August 22, 2024

my observation: this happens outside the module code. If I outcomment the implamentation of onMessageReceived the error comes also, but the message will shown in tray. I sent:

{
	"to": "eR4VQf0t2Ek:APA91bESvrI1QFd9CI8wQJvwGgASBZeiZGIFK6FPwXE_OdMilRvUUmjn0yP3k5bo3sXoniWetM7esH1knJHz6Hx52ldxF0l6G3DnCzdHgF76G0PMpB6MfYOR33PYyWAOpBNCX14tZN0Z",
	"time_to_live": 108,
	"delay_while_idle": true,
	"notification": {
		"title": "Title2",
		"body" : "Hello1843",
		"score": "4x8",
		"time": "15:16.2342"
	},
	"description": "Simple push for demonstrating"
}

with postman

from gcmpush.

Related Issues (20)

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.