[Problem] Persistent notifiaction doesn't work if browser is suspened or killed.
[Cause] Chromium posts notification with app_control which includes custom
information. If browser launched by notification we should hand over
this information to chromium.
[Solution] Invoke |ewk_context_app_control_set|.
Change-Id: Iba0018c461de3cc2d14c9700b2f3d81108abb645
Signed-off-by: cookie <cookie@samsung.com>
evas_object_show((*bd)->getMainWindow().get());
elm_win_activate((*bd)->getMainWindow().get());
+ ewk_context_app_control_set(ewk_context_default_get(), static_cast<void*>(app_control));
+
if (appcore_flush_memory() == -1) {
return;
}
int main(int argc, char* argv[])try
{
BEGIN()
- ewk_init();
+ if (!ewk_init()) {
+ BROWSER_LOGE(" could not ewk_init()");
+ return false;
+ }
+
set_arguments(argv);
//#if !defined(NDEBUG)