Update to pushfire_sdk: ^0.5.0 and the SDK does two things with no code from you:
- Every device registration and update carries the device's IANA time zone.
- When your app starts or resumes, the SDK tells PushFire, at most once every 30 minutes.
Optimal delivery uses these signals to send each push at the hour the user is most active.
0.5.0 needs Flutter 3.22 and Dart 3.4 or later, because of the time zone plugin. Apps on older Flutter versions can stay on 0.4.x; Optimal delivery still works for them.