-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Crash with Android at startup #144
Comments
@FabienHenon if the app is crashing at startup can you get me a |
@macdonst Here is the logcat
Here is the code sample : Module
PushFactory
|
@FabienHenon thanks for the logcat. I just pushed what I hope is a work around for you. Please test with the latest as it should stop crashing now. Also, your registration code can probably be simpiler:
|
I'm curious as to why this hasn't happened all the time... I'd guess this is related to something else entirely or based on some performance metric or race condition. |
@fredgalvao you and me both. I still think the guard code I put in is valid regardless but I'm not at a place where I can dig in, in depth. |
@FabienHenon did you re-test with master? Please let us know if this resolves the problem. |
@macdonst I'm sorry, I couldn't test yet. I'll let you know as soon as I try again (probably next monday). |
Kk, I want to get a release out this weekend. If this doesn't work around
|
@macdonst I tried on ios but I don't seem to receive any registration ID (my code hasn't change since last time). On Android, is the I changed nothing on my code but I'm now using the latest version from github of the plugin |
@FabienHenon That's odd about iOS but we should track that in a different issue. Yes on Android we now require support library v13 release 23 or higher. That is easy to update just by going into the Android SDK Manager and updated the Android Support Library. |
@FabienHenon did you ever get a chance to test this? |
Sorry but no.
|
I'm closing this as I believe it to be fixed. Re-open if it can be reproduced. |
This thread has been automatically locked. |
Hi everyone and thanks for this plugin!
I'm developing a cordova/angularJs application.
Everything is working fine on ios, but on Android the application is crashing at startup.
I tried to debug it and I found that the
PushPlugin.sendEvent
method is called before thePushPlugin.execute
method. Thus, thepushContext
variable is null and makes the application crashing.I'm calling the PushNotification.ini(...) JS code in the run block of my angular module. I also tried to call it in the deciveReady cordova event but the issue is still present.
Am I doing something wrong? Or is there a real issue here?
Thank you for your help!
The text was updated successfully, but these errors were encountered: