Why is the Safari extension installed on my iPhone unstable?

We are developing an application using Safari extensions (iOS 16, 17).

When the Safari extension is enabled, it does not function properly in Safari. On an iPhone, the issue can be temporarily resolved by repeating the following steps:

  • 1.Go to "Settings" → "Safari" → "Extensions" and toggle the extension off and on.
  • 2.Go to "Settings" → "Safari" → "Clear History and Website Data."
  • 3.Restart the iPhone.

However, these methods do not consistently resolve the issue, and a definitive solution has not been identified.

Does the Safari extension's JavaScript have a caching mechanism?

If it does, what are the recommended methods to address this issue?

Why is the Safari extension installed on my iPhone unstable?
 
 
Q