I'm using flutter_local_notifications
plug-in to send notifications to my users. But I need to schedule the notifications. So I use zonedSchedule()
to do that.
The problem is that zonedSchedule()
requires TZDateTime, so I need to convert DateTime to TZDateTime. I saw this question, but it didn't work for me. I just need to get the Location
of the user and pass to TZDateTime.from(dateTime,location)
. How can I get this location?
Thanks in advance.