diff options
author | Sanghyup Lee <sh53.lee@samsung.com> | 2017-08-18 17:42:48 +0900 |
---|---|---|
committer | Sanghyup Lee <sh53.lee@samsung.com> | 2017-08-30 11:22:27 +0900 |
commit | 6efdc54960a0d2f9d43d16da24967ffa907403b7 (patch) | |
tree | 66a3bde257be5838e9536c812bc332528cbc3024 | |
parent | e11e8a3dfa85baed5f7b9b71f6e2f7fd1d54ca22 (diff) | |
download | browser-6efdc54960a0d2f9d43d16da24967ffa907403b7.tar.gz browser-6efdc54960a0d2f9d43d16da24967ffa907403b7.tar.bz2 browser-6efdc54960a0d2f9d43d16da24967ffa907403b7.zip |
Support persistent notification
[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>
-rwxr-xr-x | core/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/main.cpp b/core/main.cpp index 8f45929..b8ba51c 100755 --- a/core/main.cpp +++ b/core/main.cpp @@ -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; } |