Skip to content

setExpiration() doesn't work #13

Description

@LucaAust

I set the template expiration to 1000, but the notification will closed after 5-6 seconds.
If i set the expiration to 10.000 the notification will closed after 5-6 seconds as well.

import time
import zroya


def _dismiss(action_id, reason):
    print(f"[_dismiss()] action_id: {action_id}")
    print(f"[_dismiss()] reason: {reason}")


def main():
    # Initialization is required
    zroya.init("asdf", "a", "b", "c", "1")

    template = zroya.Template(zroya.TemplateType.Text1)
    template.setExpiration(1000)

    zroya.show(template, on_dismiss=_dismiss)

    time.sleep(20)

if __name__ == '__main__':
    main()

I'm using python 3.7 with zroya 0.2.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions