SFSafariViewController lifecycle delegate

Hello,

Is it possible to use a delegate or other approach to detect lifecycle events like form submissions / navigation events from the SFSafariViewController from the application that creates the Safari instance? The use case is a centralised session keep-alive requirement to extend the ttl on tokens for multiple third-party clients that use Single-Sign-On via browser cookies for authentication.

There's no supported way for you to detect like cycle events from SFSafariViewController with the APIs currently available. If you'd like us to consider adding the necessary functionality, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here. If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?

You can use a Safari Extension to know of changes in the DOM and fire messages back to your app, but nothing for SFSafariViewController explicitly

Rico
WWDR - DTS - Software Engineer

SFSafariViewController lifecycle delegate
 
 
Q