Custom Web View Presentation
By default, Netmera offers a visually appealing user interface (UI) when displaying web view content in push or popup notifications. It automatically handles the presentation of the web view content without requiring any additional customization.
However, if you have a standard web view presentation flow and want to use it, or want to implement your own presentation flow, you can do this by implementing the following steps:
Implement the
-handleWebViewPresentation:
method within yourNetmeraPushDelegate
object.Within the delegate method, call the
[Netmera loadWebViewContentInWebView:]
method.
Warning:
Please note that the provided implementation below is a simple example and will not function independently. You must develop your own presentation flow.
When the SDK requires presenting a web view content, such as when a popup notification is received or when a user opens a push notification containing web view content, the SDK follows this process:
The SDK checks if a
NetmeraPushDelegate
object has been previously set using the[Netmera setPushDelegate:]
method.If a delegate object has been set and it implements the
-handleWebViewPresentation:
method, the SDK calls this method.If the delegate object does not exist or does not implement the
-handleWebViewPresentation:
method, the SDK automatically presents the web view content using its internal presentation flow.
It is important to ensure that you have properly set the NetmeraPushDelegate
object and implemented the -handleWebViewPresentation:
method in order to customize the web view presentation according to your specific requirements.
Last updated