iOS Native app integration with web pages through WKUserContentController

We have a requirement to integrate web based flows as part of multiple different native iOS apps. For installation of BLE enabled smart home devices, we have this design proposal where the flow is implemented in a web app with native hooks to access BLE (this interface is fixed and does not allow arbitrary invocations of native code) which is launched within a WkWebView inside the native app. The web app is primarily meant to drive the on-boarding experience and does not hold or need any user data (PII or otherwise).

This implementation would make use of the WKUserContentController (https://developer.apple.com/documentation/webkit/wkusercontentcontroller) class that provides a way for interaction between native app and the secure hosted web page.


Please advise whether you see any issues with us adopting this approach and any caveats with respect to developer guidelines that we should consider.