Support persistent notification 01/143501/7
authorSanghyup Lee <sh53.lee@samsung.com>
Fri, 18 Aug 2017 08:42:48 +0000 (17:42 +0900)
committerSanghyup Lee <sh53.lee@samsung.com>
Wed, 30 Aug 2017 02:22:27 +0000 (11:22 +0900)
[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: I231beaaf221ba9d3711502ebb61889a797de0cfa
Signed-off-by: Sanghyup Lee <sh53.lee@samsung.com>
core/main.cpp

index 8f4592938b3443a748f96bb21e685a097aa90ea4..b8ba51c2df78976ac5fcf2e03b95465748dc4914 100755 (executable)
@@ -203,6 +203,8 @@ static void app_control(app_control_h app_control, void* app_data)
     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;
     }