Make Layerise Product Assistant part of your existing IOS Mobile app

settings ·

Adding Layerise product assistant to your existing IOS application is an effortless yet effective way to provide a post-sales experience to your customers. Layerise product assistant can be embedded into your existing application to unlock the powerful duo of your existing IOS app features and post-sales experience.


A good question. You might consider the following points:

  • By adding Layerise product assistant to an existing iOS app, you have resources (you created in Layerise product assistant) on the same platform. With this practice, you save hassle for customers to check 2 different platforms.
  • New features/fixes can be shipped faster because you don't have to go through the publishing process every time you make a change in Layerie product assistant components.
  • The app will still be available at the App/Play Store, so users can find and install it over different channels

How does it work?

Layerise Product Assistant will be displayed inside a WKWebView. It is an object that displays interactive web content, such as Layerise Product Assistant. You can think of WKWebView as a browser inside the application for native apps. Every WKWebView has its own storage data (cookies, localStorage, IndexedDB, etc.) and it will be restored when closed and reopened again. But the native App doesn't share its own cookies with the WebView.

There are some Operating System(OS) prerequisites for WebView to work on customer devices:

iPhone: iOS 8.0

iPad : +iPadOS 8.0+

Macbook: macOS 10.10+

Mac Catalyst 13.1+

WKWebView replaces the UIWebView class in iOS 8 and later, and it replaces the WebView class in macOS 10.10 and later.'


import UIKit import WebKit class ViewController: UIViewController, WKUIDelegate {

var webView: WKWebView!

override func loadView() { let webConfiguration = WKWebViewConfiguration() webView = WKWebView(frame: .zero, configuration: webConfiguration) webView.uiDelegate = self view = webView } override func viewDidLoad() { super.viewDidLoad()

   let myURL = URL(string:"")
   let myRequest = URLRequest(url: myURL!)


Find the product assistant URL here


Everything you need to know about WKWebView is listed here

To enable the Layerise product assistant in your IOS app please follow these guidelines :

1. Navigation

When Layerise product assistant is running inside a WebView just as part of a native app, make sure that the user is always able to get back to the app, without having to close the entire app. You can utilize the global $inApp variable to display a close button in a menubar when the assistant is opened in the WebView along with other design adjustments:


2. Allow MultipleSelection for File Upload

AllowsMultipleSelection is a Boolean value that indicates whether the file upload control supports multiple files.

var allowsMultipleSelection: Bool { get }

You can read more about this here:

3. Play Media files within Layerise Assistant

allowsInlineMediaPlayback will allow videos to play within the browser instead of using the full-screen controller. The default value of this property is false for iPhone and true for iPad.

var allowsInlineMediaPlayback: Bool { get set }

You can read more about this here

4. Clickable links

This element will detect URLs in text and turn them into clickable links. Customers should be able to click on URL/reference links in topics and warranty that redirect them to other pages.

static var link: WKDataDetectorTypes { get }

You can read more about this here

5. Download Resources from Layerise Product Assistant

Customers may want to download the files uploaded in Layerise product assistant. This element allows customers to download files in a native app.

class WKDownload : NSObject  

You can read more about this here

Have a question?


Trusted by companies like


Copyright © 2022 Layerise ApS. Made with 🧁  in Denmark · LinkedIn