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

[Bug]: Service Worker Not Working on iOS Devices with Capacitor 7 #7858

Open
1 of 3 tasks
TanerSaydam opened this issue Feb 2, 2025 · 2 comments
Open
1 of 3 tasks
Labels
needs reproduction needs reproducible example to illustrate the issue

Comments

@TanerSaydam
Copy link

Capacitor Version

Hello,

I am using Angular with Capacitor 7 to build a mobile application. My application works perfectly on most devices. However, I have encountered an issue with Service Workers:

On Android devices, Service Workers function as expected.
On iOS devices (e.g., iPhone), Service Workers do not work at all.
This issue only occurs for a specific page where I have Service Worker functionality enabled. The rest of the application behaves normally.

Is this a known issue with Capacitor 7 on iOS? Are there any workarounds or solutions for this problem?

Thank you in advance for your help!

Best regards,
Taner

Other API Details

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

I am using Angular with Capacitor 7 to build a mobile application. My application works perfectly on most devices. However, I have encountered an issue with Service Workers:

On Android devices, Service Workers function as expected.
On iOS devices (e.g., iPhone), Service Workers do not work at all.
This issue only occurs for a specific page where I have Service Worker functionality enabled. The rest of the application behaves normally.

Expected Behavior

On iOS devices (e.g., iPhone), Service Workers must work like Andorid devices

Project Reproduction

I can't give my personel repo

Additional Information

No response

@markemer
Copy link
Member

markemer commented Feb 3, 2025

Can you give us a reproduction at least that still causes the issues but doesn't reveal any of your personal code?

@markemer markemer added the needs reproduction needs reproducible example to illustrate the issue label Feb 3, 2025
Copy link

ionitron-bot bot commented Feb 3, 2025

This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed.
Please see the Contributing Guide for how to create a Sample App.
Thanks! Ionitron 💙

@ionitron-bot ionitron-bot bot removed the triage label Feb 3, 2025
@Ionitron Ionitron added needs reply needs reply from the user and removed needs reply needs reply from the user labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction needs reproducible example to illustrate the issue
Projects
None yet
Development

No branches or pull requests

3 participants