tjarvstrand / flutter_timezone

A fork of https://github.com/pinkfish/flutter_native_timezone
Apache License 2.0
42 stars 29 forks source link

[Question]: Timezone retrieval safety outside of Flutter #14

Closed mrverdant13 closed 1 year ago

mrverdant13 commented 1 year ago

Hey there! 👋🏼

I would like to know if it is possible to get the device locale when invoked in an independent isolate or context e.g bg notification handler ?

Thanks! ✌🏼

tjarvstrand commented 1 year ago

Hi, sorry for the late response. As long as you take the necessary steps to set up everything needed for the Flutter method channel to work, I see no reason it shouldn't work.

If you're running in a separate isolate, you could use something like flutter_isolate to do that for you.

tjarvstrand commented 1 year ago

I'm not sure what else I can do here so I'll close this for now. Please reopen if you experience any problems.