Skip to content
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

registerforupdatelisner not called after reboot of my phone #37

Closed
aakdemo opened this issue May 28, 2015 · 2 comments
Closed

registerforupdatelisner not called after reboot of my phone #37

aakdemo opened this issue May 28, 2015 · 2 comments

Comments

@aakdemo
Copy link

aakdemo commented May 28, 2015

Its calling dowork native method only. I need to call javascript function(registerforupdatelisner) in background after reboot of my phone.

@Red-Folder
Copy link
Owner

Apologies for the delay in response.

You are expecting your JavaScript to run when the app isn't running. This cannot happen as the JavaScript needs the app to be running. You would need to write code to specifically start the app (after reboot) then re-register the listener.

As a general rule, all doWork() activity should be in Java. The only work done in JavaScript should be UI updates.

@aakdemo
Copy link
Author

aakdemo commented Jun 22, 2015

Okay I understand.

Thanks a lot.
On 22-Jun-2015 5:51 pm, "Mark Taylor" notifications@github.com wrote:

Closed #37 #37.


Reply to this email directly or view it on GitHub
#37 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants