Closed drexhacker closed 1 year ago
I'm getting the same error. Here is how I am using the package. Kindly help.
import 'package:timezone/data/latest.dart' as tz;
import 'package:timezone/timezone.dart' as tz;
void main async {
tz.initializeTimeZones();
tz.setLocalLocation(tz.getLocation(await FlutterNativeTimezone.getLocalTimezone()));
runApp(App());
}
Future<void> _firebaseMessagingBackgroundHandler(RemoteMessage message) async {
var notifyTime = tz.TZDateTime.now(tz.local).add(Duration(seconds: 10));
}
Apologies for the late reply. In addition to the repro code, can someone provide a stack trace? The repro code in the last comment does not call timeZone
.
Closing; please open a new issue with details if it occurs again.
getting the same