pushwoosh-cordova-plugin crashes on registerDevice

  • 3
  • Problem
  • Updated 4 years ago
My app crashes on registerDevice with pushwoosh-cordova-plugin.
Yesterday I build the app and it worked.
today I build again with the same code and no longer works.
Photo of Danilo Silva

Danilo Silva

  • 7 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 3
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Just curious: why did you build again today with the exact same code?

Anyway, the plugin was updated 9 hours ago, so it might contain a bug or the interface has changed.
Read the docs and check whether or not you need to change something in your code now. If not, try the previous version of the plugin. If that one renders no errors, please file a bug for that plugin at Github.
Photo of Danilo Silva

Danilo Silva

  • 7 Posts
  • 0 Reply Likes
On thursday I was testing the changes. on friday I needed to generate with the signing key for uploading in playstore
Photo of Shader

Shader

  • 62 Posts
  • 3 Reply Likes
Usually you receive crash because of incompatibility or different versions between Android Support V4 library and Google Play Services library.

This is how Pushwoosh plugin references them:

compile 'com.android.support:support-v4:+’
compile 'com.google.android.gms:play-services-gcm:+’
compile 'com.google.android.gms:play-services-location:+'

More details here:
https://github.com/Pushwoosh/pushwoos...

And here:
https://developers.google.com/android...

Looks like Google broke google play services 9.0 and fixed this in 9.0.1

Which version Google Play Services library PGB uses?
Photo of Danilo Silva

Danilo Silva

  • 7 Posts
  • 0 Reply Likes
"The only option is to wait until Adobe will update Android SDK on their servers."
So i need to wait? there is no other way?
Photo of Shader

Shader

  • 62 Posts
  • 3 Reply Likes
That's why I asked: Which version Google Play Services library PGB uses?
I hope someone from PGB team can shed the light here.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Danilo & Shader,
if you do not set the version for your plugin you will get the latest, this may be the reason your app broke.

I quote from the documentation:
spec: Optional, but we highly recommend locking your plugin version, as mentioned above. For git-backed plugins this will specify the git repository. If the attribute contains a full URL then it is assumed it is a git plugin.


However, the author for phonegap-plugin-push reports the issue with Google services. You can read details here:
HEADS UP: Apps Crashing with phonegap-plugin-push and Google Play Services 9.0.0

Jesse
Photo of Danilo Silva

Danilo Silva

  • 7 Posts
  • 0 Reply Likes
I tried several versions of the plugin and all give the same problem
Photo of Shader

Shader

  • 62 Posts
  • 3 Reply Likes
Because it is not the problem with the plugin itself. The plugin references the latest Google Play Services library. As mentioned before Google broke 9.0.0 and fixed it in 9.0.1
I also provided link to the Google Official release note.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Danilio,
you may want to turn off the automatic update for your software. Recently, Google have been very aggressive in updating software. I have had to disable Google Play Services on some of my Test devices to keep them from upgrading.

To be clear, Shader may be correct - in that the issue is with Google Play Services library. I do not use PushWoosh or any "push" services so I cannot give you a definite answer.

However, you might get a different answer on the new "official" forum: https://forums.adobe.com/community/ph.... Please inform them of this thread so this conversation is not duplicated.

Jesse
Photo of Danilo Silva

Danilo Silva

  • 7 Posts
  • 0 Reply Likes
the problem was solved. i finaly can generate my app
Photo of Brian DeCicco

Brian DeCicco

  • 6 Posts
  • 0 Reply Likes
What version of the plugin are you using? I'm using 5.1.2 and just rebuilt my app and it's still crashing. Thoughts?
Photo of Danilo Silva

Danilo Silva

  • 7 Posts
  • 0 Reply Likes
works on the 5.1.1 version of pushwoosh plugin
Photo of Shader

Shader

  • 62 Posts
  • 3 Reply Likes
Party!
Photo of Brian DeCicco

Brian DeCicco

  • 6 Posts
  • 0 Reply Likes
Did you have any luck? My app is still crashing. No update on the Adobe forums - https://forums.adobe.com/thread/2164389 either.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Brian,
there is an update on the Adobe forum. The response is from the author of the phonegap-push-plugin. It's about an authoritative answer you can get.
Jesse
Photo of Danilo Silva

Danilo Silva

  • 7 Posts
  • 0 Reply Likes
works on the 5.1.1 version of pushwoosh plugin
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Geeeeh. So are you able to ship your product now that your issue ire resolved?
Photo of Brian DeCicco

Brian DeCicco

  • 6 Posts
  • 0 Reply Likes
Just tried 5.1.1 and it's working for me too! I wonder how long that had been working?