Closed Janamou closed 7 years ago
Exposed it as ServiceWorkerRegistration.jsObject
in #d79a72
Thanks for bringing up this use case. I think exposing the JS Object should be the last resort, but in this specific integration it does provide a value that is hard to get around in other ways. I hope it can be the exception than the general pattern.
@isoos Thanks a loooot for this! Works for me! :-)
Hi Istvan, thank you very much for the great library!
I am now implementing a Firebase cloud messaging to firebase-dart and in some point of the time, I would love to have a native JavaScript object for
ServiceWorkerRegistration
. The reason is, that I need to call the messaging.useServiceWorker() method in my wrapper which calls theuseServiceWorker()
from JavaScript but I need to have the JavaScriptServiceWorkerRegistration
object - which is yourfacade.ServiceWorkerRegistration
:-)And it would be great to have the getter for
_delegate
. Then I can do this:Would it be a problem to have a getter for
_delegate
?Thanks!