Repository navigation
Conversation
Apps that show a publisher's site in their own webview often need to hand off contentpass.net web flows - login, payment - into a native sheet instead of loading them inline. ContentPassWebViewPopup wraps that: it presents the flow in a sheet sliding up over three quarters of the presenting view controller, keeps navigation within contentpass.net/contentpass.com inside the sheet, and dismisses it with the destination URL once the flow navigates elsewhere so the host app can load it in its own webview. It's independent of ContentPass's authentication state and doesn't require a contentpass_configuration.json. WebViewPopupExample is a new, SDK-backed example app demonstrating the full round trip: a webview loads a CMP page, hands a contentpass.net link off to the popup, and gets the destination URL back once the flow leaves contentpass.net/contentpass.com.
0x7f
force-pushed
the
webview-popup-sdk-helper
branch
from
September 25, 2026 09:09
b1f0de1 to
a372627
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ContentPassWebViewPopup, a UIKit helper that presents amy.contentpass.net/contentpass.comweb flow (login, payment) in a native sheet sliding up over three quarters of the presenting view controllerautologin.contentpass.com); navigating anywhere else dismisses the sheet and hands the destination URL back via a completion closureContentPass's auth state — nocontentpass_configuration.jsonrequiredWebViewPopupExample, a new SDK-backed example app demonstrating the full round trip: a webview loads a CMP page, hands a contentpass.net link off to the popup, and gets the destination URL back once the flow leaves contentpass.net/contentpass.com@available) for the custom 75%-height sheet detent; doesn't change the package's iOS 10 floorDemo
A recording showing the behaviour. The demo is opened in the main webview. URLs containing contentpass.net are opened inside a popup. Handover into the main WebView, including exchange of token for a proper session cookie happen inside the webview again and successfully log the user in.
Screen.Recording.2026-09-25.at.11.04.48.mov