Hey,

1. Simply use a timer to call close() on the notification. Thats the way 
it's done in JS.
2. I updated the code for you. The Notification is now available in the 
event, so you can access the properties you set before.
It is also updated to the latest spec.

I hope it helps you ;)

Am Mittwoch, 13. Januar 2016 02:01:38 UTC+1 schrieb confile:
>
> @Marcel There are two things missing in you GWT project: 
>
> 1. How do you set the duration the notification is shown?
> 2. How do you get the notification id from a click on the notification to 
> make a proper redirect?
>
>
> Am Freitag, 7. Februar 2014 09:26:29 UTC+1 schrieb Marcel K:
>>
>> Hey,
>>
>> after some coding with gwt i want to publish a component that i wrote. 
>> It's an api for desktop-notification and should work with Chrome, FF and 
>> Safari (according to 
>> https://developer.mozilla.org/en-US/docs/Web/API/notification#Browser_compatibility
>> ).
>>
>> I would really appreciate if someone could take a look at it and maybe 
>> give me some advices ;) or.. maybe even use :)
>>
>> https://github.com/MarZl/notification.notification-api
>>
>>
>> Cheers
>> Marcel
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to