I'm developing an application and there are some function which they called from a javascript page which I loaded in a webview. these functions set the badge number for my app.
the problem is, when I hide the app, or close or switch to other app, it seems my app doesn't work, javascript sends but my app seems is not active enough to receive and call the proper function.
how can I fix it that my app always be ready that ger called from javascript?
the problem is, when I hide the app, or close or switch to other app, it seems my app doesn't work, javascript sends but my app seems is not active enough to receive and call the proper function.
how can I fix it that my app always be ready that ger called from javascript?