-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zonedSchedule issue on IOS when time format is not 24H #860
Comments
My device has always had the 24hr time format setting off and don't run into the issue you've mentioned. I believe this is the default setting for iOS devices as well so there's probably something else going here. As I can't reproduce and you seem to be able to, it's likely you're the only one at this stage that can dig into this further. This will likely need some debugging on the iOS side to see what's going on |
Strange, what i can do from my side to help you investigate it? |
Debug the code, find out where the issue lies and submit a PR to fix it as this isn't something I'm going to be able to do at all |
The issue is happen on Native side, i`m not familiar with native ios development, so i cant really help in this manner |
Then I'm afraid it's simply something that just won't get fixed unless someone else is able to reproduce the issue to fix. The thing I've noticed though is you wrote what your method looks like yet the steps to reproduce revolve around the example app. Did you actually follow the steps you mentioned to reproduce the issue with the example app? |
yes, i have this issue on my app, but for open bug i especially downloaded your example and did a try on your code, with only changes that i described |
I'll put a label on this issue to see if anyone else is able to help |
Thanks |
I would still say your best bet is to upskill in native development enough to look at solving the issue yourself as it's quite possible that no one helps to look into this issue :S |
I found a solution and did a PR #862 |
…iOS and macOS (#862) * Fix for issue #860 * change locale for en_US_POSIX * change locale for en_US_POSIX * specify locale to ensure DateFormatter works on fixed format string for macOS * bump plugin version to 2.0.2 and add changelog entry * correct changelog entry Co-authored-by: Eugene Alitz <alitze2@medtronic.com> Co-authored-by: Michael Bui <25263378+MaikuB@users.noreply.github.com>
Hello, and thank you for this plugin.
But now i have some strange issue
Describe the bug
iPhone Xs Max
iOS 13.7
Flutter 1.22.2
plugin version 2.0.1+1
If iphone DateTime format is 24H = TRUE - Everything works as expected
But if i uninstall the app, change DateTime format is 24H = FALSE, and install app again, the App crushed when i try to send scheduled notification.
The console output from XCODE:
My method:
As result in console:
Also i've added print to your platform_flutter_local_notifications.dart to method zonedSchedule
print('FLN: zonedSchedule scheduledDate:$scheduledDate');
And also get this in console:
So as you can see i pass scheduledDate, but native code didn't receive it when IPHONE not in 24H format
To Reproduce
flutter_local_notifications: ^2.0.1+1
flutter: ">=1.12.13+hotfix.5"
flutter pub get
cd ios & pod install
Expected behavior
App should receive notification, but instead App is crashed with message from above
The text was updated successfully, but these errors were encountered: