Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle relative URLs in notifications to open in-app (#687)
This handles the various ways that we could launch: - state restoration doesn't fire on notifications since the system knows it shouldn't - launching from cold uses a Promise to wait (since it's launched well before WebViewController exists) - launching from warm goes through the same Promise but happens instantly - handles one fun edge case of: start the app, get logged out due to deactivated token, open a notification with a url, finish onboarding -- this will correctly open the URL. Fixes #250 -- use a URL like `/lovelace-name-here/0` to open a page as if you navigated to it normally.
- Loading branch information
Showing
2 changed files
with
87 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters