-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Rendering API] Migrate from internal clickthrough browser to SFSafariViewController #796
Conversation
ce528a8
to
046b129
Compare
…Delegate to track willPresent/didDismiss
…version less than 14
9b54a0f
to
ae01981
Compare
@@ -110,7 +110,6 @@ public class Prebid: NSObject { | |||
public var creativeFactoryTimeoutPreRenderContent: TimeInterval = 30.0 | |||
|
|||
//Controls whether to use PrebidMobile's in-app browser or the Safari App for displaying ad clickthrough content. | |||
//For original API should be true | |||
public var useExternalClickthroughBrowser = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This property looks outdated now.
Rendering API. SDK opens an URL only in the SFSafariViewController
, right? It means the imp.clickbrowser
will always be 1
.
Original API. This scenario assumes rendering in any ad server SDK. We can't know which browser will be used. But we should give publishers ability to clarify the behavior if needed. Since the Original API is mostly ised with GMA SDK, we can assume that the click URL will be opened in SFSafariViewController
as well. So the default value should be 1
too.
The name is irrelevant anymore too. There is no attempt to open an URL in something external. Let's rename this property to something more OpenRTB-focused, like impClickbrowser
with default value @1
and ability to customize it only for Original API integration. The comment to his property should point to the description of the respective field in the OpenRTB standard.
@@ -34,10 +33,9 @@ | |||
#import "PBMMacros.h" | |||
|
|||
|
|||
@interface PBMClickthroughBrowserOpener () | |||
@interface PBMSafariOpener () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename to PBMSafariVCOpener
. Because there is a difference between opening in the SFSafariViewController
and the Safari application.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #793