Commit b41609f8 by Sebastián Katzer

If the webview is not created, firstly start the main intent and then exec the callback

parent 5b196033
......@@ -43,8 +43,13 @@ public class ReceiverActivity extends Activity {
JSONObject args = new JSONObject(bundle.getString(Receiver.OPTIONS));
Options options = new Options(getApplicationContext()).parse(args);
if (LocalNotification.webView == null) {
launchMainIntent();
invokeBackgroundCallback(options);
} else {
invokeBackgroundCallback(options);
launchMainIntent();
}
} catch (JSONException e) {}
}
......
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