Commit 5b196033 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Invoke background callback in own thread

parent e9692c17
Loading
Loading
Loading
Loading
+1 −1
Changes for src/android/ReceiverActivity.java: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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)");
        }
    }
}