Why in my iOS app, every time I close my WebView, in the develop menu in Safari I still…
- User
Why in my iOS app, every time I close my WebView, in the develop menu in Safari I still see an instance of the page that was open in the WebView, and when I reopen the webview, a new instance of the page is added and on the page itself I have an inscription with the information that the chat window is already open?
Assistant
This sounds like a WebView lifecycle management issue. When you close your WebView, you're likely not properly cleaning up the connection to Safari's debugging tools.
A few things might be happening:
- The WebView isn't being fully deallocated when you "close" it
- You're creating new WebView instances without properly disposing of previous ones
- Your webpage has logic detecting multiple connections
Try implementing proper cleanup in your WebView's deallocation method:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.