Skip to content
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

Make option for local notifications to be timezone independant #188

Open
tdekoning opened this issue Oct 2, 2020 · 1 comment
Open

Make option for local notifications to be timezone independant #188

tdekoning opened this issue Oct 2, 2020 · 1 comment

Comments

@tdekoning
Copy link

Feature request

Right now, it is possible to schedule a local notification in the future. However, when the user travels between time zones (or when daylight savings occurs), the notification will be based off the old time zone.

Since there is no way to act upon time zone changes in the background on iOS, it would be awesome if there would be an option to specify that the notification occurs on a specific time on a specific day, independently of the time zone the user is in.

Why it is needed

We have to schedule local notifications for users to be reminder to do a certain physical action. This action relies on the daily routine of the user, which will change based on the time zone the user is in.

Possible implementation

I'm not an iOS user or expert, but i can imagine it would be using the https://developer.apple.com/documentation/usernotifications/uncalendarnotificationtrigger class to specify when the notification should be shown.

Code sample

@bwernsman
Copy link
Contributor

I created a PR for this, #354. Feel free to take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants