# Cron task and popup notification with url

**URL:** https://discuss.tryton.org/t/cron-task-and-popup-notification-with-url/3599
**Category:** Developer
**Created:** [December 23, 2020, 8:09am UTC](https://discuss.tryton.org/t/cron-task-and-popup-notification-with-url/3599 "2020-12-23T08:09:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![athelia](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/a/9fc29f/32.png) [@athelia](https://discuss.tryton.org/u/athelia)
#### Post date: [December 23, 2020, 8:09am UTC](https://discuss.tryton.org/t/cron-task-and-popup-notification-with-url/3599/1 "2020-12-23T08:09:42Z")

</div>

Hi, I am trying to add a cron task to popup an info box every hour to show a list of rooms and upcoming meetings. And the user should be able to click the rooms and redirect to the tab/url.

I tried using notify but sadly notify cant be customized to redirect to a specific url.  
I tried using wizard too but couldn’t find any way to auto popup a wizard using Scheduled Actions.

May I know if there’s any suggestion on how to achieve my requirement? Thank you

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [December 23, 2020, 8:46am UTC](https://discuss.tryton.org/t/cron-task-and-popup-notification-with-url/3599/2 "2020-12-23T08:46:13Z")

</div>

This is typically a use case for the notification. But for now they do not support any action when clicked. It could be possible to implement it in sao with the `Notification.onclick` callback. But on tryton the [`GNotification`](https://developer.gnome.org/gio/stable/GNotification.html) support only to trigger application-wide action. Maybe it could trigger the `url_open` using the `g_notification_set_default_action_and_target_value` method with a target value as a partial URL.

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [December 23, 2020, 8:07pm UTC](https://discuss.tryton.org/t/cron-task-and-popup-notification-with-url/3599/3 "2020-12-23T20:07:43Z")

</div>

I’m wondering if we should not allow to include some buttons on the notification (which will call a method on the server). This will allow to trigger any button\_action on the server.

This is tipicaly the case when you popup a notification and want the user to open a specific record or start a wizard to process some records.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [December 23, 2020, 8:23pm UTC](https://discuss.tryton.org/t/cron-task-and-popup-notification-with-url/3599/4 "2020-12-23T20:23:16Z")

</div>

A notification should notify about one thing. So I do not see the point to have more than one action.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [January 22, 2021, 8:23pm UTC](https://discuss.tryton.org/t/cron-task-and-popup-notification-with-url/3599/5 "2021-01-22T20:23:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
