Post

Replies

Boosts

Views

Activity

Reply to Safari Web Extension background script becomes unresponsive after 30 seconds
Some additional findings... If you look through the content script code you'll see that I am calling runtime.sendMessage every 1 second which always causes the background script to crash after 30 seconds. I started to play with the 1 second interval to see if it behaved differently. Increasing it to 2 seconds caused a crash after 15 calls (also 30 seconds). Increasing the interval to 3 seconds caused a crash after 10 calls (also 30 seconds). Increasing to 4 seconds causes the background script to behave how I'd expect... that is it never crashes and is able to respond to the sendMessage request forever.
Topic: Safari & Web SubTopic: General Tags:
Jun ’24
Reply to Safari Web Extension background script becomes unresponsive after 30 seconds
@Frameworks Engineer As of 18.6.2 I'm seem this issue again. I've compiled a list of related issues below. This is a serious issue that I'm sure is breaking so many iOS Safari Web Extensions. https://github.com/alexkates/content-script-non-responsive-bug/issues/1 https://developer.apple.com/forums/thread/764594 https://developer.apple.com/forums/thread/758346 https://github.com/dessant/search-by-image/issues/325
Topic: Safari & Web SubTopic: General Tags:
Aug ’25
Reply to Service Worker does not wake up
Same exact issue. Were you ever able to solve this?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Safari Web Extension background script becomes unresponsive after 30 seconds
Some additional findings... If you look through the content script code you'll see that I am calling runtime.sendMessage every 1 second which always causes the background script to crash after 30 seconds. I started to play with the 1 second interval to see if it behaved differently. Increasing it to 2 seconds caused a crash after 15 calls (also 30 seconds). Increasing the interval to 3 seconds caused a crash after 10 calls (also 30 seconds). Increasing to 4 seconds causes the background script to behave how I'd expect... that is it never crashes and is able to respond to the sendMessage request forever.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to iOS 17.4.1 Safari extension issues
I'm almost certainly experiencing a similar issue that I've documented with a minimum-reproducible example that you can find in this forum post.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to Safari Extension Stops on iOS 17.5.1 - 18
Dropping a link to a StackOverflow i authored around this exact topic. I've been trying to figure this out for months as well. https://stackoverflow.com/questions/78570837/safari-web-extension-background-script-becomes-unresponsive-after-30-seconds
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Safari Extension Service Worker Permanently Killed on iOS 17.4.x-17.6
It's not fixed in 17.6.1 or 18.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Safari Extension Service Worker Permanently Killed on iOS 17.4.x-17.6
This is still not fixed as of 18.6.2. At this point, I have no idea how anyone is building Safari Web Extensions for iOS. I can't reliably call my APIs after 30 seconds.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to Safari Web Extension background script becomes unresponsive after 30 seconds
@Frameworks Engineer As of 18.6.2 I'm seem this issue again. I've compiled a list of related issues below. This is a serious issue that I'm sure is breaking so many iOS Safari Web Extensions. https://github.com/alexkates/content-script-non-responsive-bug/issues/1 https://developer.apple.com/forums/thread/764594 https://developer.apple.com/forums/thread/758346 https://github.com/dessant/search-by-image/issues/325
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Aug ’25
Reply to Testflight builds getting stuck in processing
Same here
Replies
Boosts
Views
Activity
Jan ’26