Commit 5b196033 by Sebastián Katzer

Invoke background callback in own thread

parent e9692c17
......@@ -70,7 +70,7 @@ public class ReceiverActivity extends Activity {
// after reboot, LocalNotification.webView is always null
// may be call background callback later
if (function != null && LocalNotification.webView != null) {
LocalNotification.webView.sendJavascript(function + "(" + options.getId() + ")");
LocalNotification.webView.sendJavascript("setTimeout('" + function + "(" + options.getId() + ")',0)");
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment