-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing on Android 4.1 and 4.2 #10
Comments
data.ServiceRunning was returning false the first time around for some reason, but now it's ok |
@safinahmed Thx :) |
Hey greips, I would, but all that happened was that I ran it once in debug mode (so I could pinpoint the error) and it started working from that point on Sorry I couldn't be more helpful and good luck |
Maybe the service started bit to early in your scripts? (before Phonegap 2013/8/20 safinahmed [email protected]
|
@safinahmed ok... i thought you just hack into the code. @teusinkorg nice to see you here as well :P I put my code as a response in your opened issue for 2.8, and there you can see this sequence: so I guess the problem is related to the answer to the question "Service is running?" It might return null or something unexpected and then it crashes... |
@greips Hi :) It fails on this command: This is the function: // Return Plugin with ServiceRunning true/ false It is strange that the function would return null. As it boolean is Perhaps the developer knows. 2013/8/20 greips [email protected]
|
@teusinkorg Actually i think it fails at line 151: Log.d(TAG, "Service is running?"); EDITED: Actually, looking at the code it might fail at the startService() when the bind is failed... That's the only difference I can see. |
It's the same issue as #7 I'm putting comments on that issue at it's got the logcat |
I have successfully implemented you plugin on Android 2.7 using PhoneGap 2.7.0, but when testing in version 4.1 and 4.2 I get the following error
W/dalvikvm(1074): threadid=17: thread exiting with uncaught exception (group=0x40a71930)
Do you have any idea how I might fix this ?
I was able to pinpoint it to this call in the JS side app.service.enableTimer
But on the Java side, I have logging statement everywhere, and it doesn't show anything
Thanks in advance
The text was updated successfully, but these errors were encountered: