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

fix(safari): Resolve manifest upgrade compatibility issues #391

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

ERosendo
Copy link
Contributor

@ERosendo ERosendo commented Aug 30, 2024

This PR addresses the following issues:

  • Updates the script that creates the MacOS and iOS version of the extension: After updating the manifest file to include new API permissions, the update_manifest_files helper method was overwriting the existing permissions for the macOS and iOS versions of the extension with a hardcoded list(This caused compatibility issues). The PR removes the hardcoded permissions list from the helper method, ensuring that the same set of permissions is used across all browsers.

  • While testing the extension, I noticed that the code that creates notifications was consistently raising exceptions. Investigating the Notifications API documentation , I realized Safari currently doesn't support this functionality. To prevent these errors and ensure a smooth user experience across browsers, I implemented an early return mechanism within the showNotification function. This return now occurs specifically when the extension detects it's running in Safari.

…lity

This commit prevents the extension from triggering notifications in Safari, as the browser doesn't support the necessary API methods(`notifications.create`).
@ERosendo ERosendo added the no changelog Override Check Changelog Action. label Aug 30, 2024
@mlissner
Copy link
Member

Ugh. We used to ask people to install a special notification tool on Apple computers to do notifications, because the OS hadn't figured them out yet.

I guess a solution here could be to use the website's notification system, assuming Safari supports that. Seems like it can wait, but I guess it's a solution.

@ERosendo ERosendo marked this pull request as ready for review August 30, 2024 14:54
@ERosendo ERosendo removed the no changelog Override Check Changelog Action. label Aug 30, 2024
@ERosendo ERosendo merged commit 6592874 into main Aug 30, 2024
8 checks passed
@ERosendo ERosendo deleted the fix-safari-compatibility-issues branch August 30, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants