Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setExpiration() doesn't work #13

Open
LucaAust opened this issue Feb 28, 2019 · 1 comment
Open

setExpiration() doesn't work #13

LucaAust opened this issue Feb 28, 2019 · 1 comment

Comments

@LucaAust
Copy link

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.

@romkazor
Copy link

Hello, for me is same. Python 3.6.8, windows 10, setExpiration wont working and static closed after 5 seconds. And if try to use addAction then notification is permanent.

How to fix this? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants