...
There are 12 different In-App Message designs available:
Pop-up - Image, Title, Text and Button | Mini - Icon and Text | Full Screen Image |
Full Screen Image and Button | Pop-up - Image, Title, Text and Button | Pop-up Survey |
Pop-up - NPS with Text and Button | Native Alert & Action Sheet | 1-10 Rating NPS |
Starred Survey & Second Popup | Half Screen Image | Carousel |
Video | Drawer | |
If you want to manage the links you have added for inappler yourself, you can follow the step below.
...
After creating the Spin to Win from the RMC panel, as in the in-app message, each time you call a customEvent, it is checked whether there is a Spin to Win and then the Spin to Win is displayed.
Spin to Win Half Screen | Spin to Win Full Screen |
---|---|
Scratch To Win
After creating the Scratch to Win from the RMC panel, as in the in-app message, each time you call a customEvent, it is checked whether there is a Scratch to Win and then the Scratch to Win is displayed.
...
After creating the Gift Rain from the RMC panel, as in the in-app message, each time you call a customEvent, it is checked whether there is a Gift Rain and then the Gift Rain is displayed.
...
App Banner
To use the App Banner action, you first need to create and add a UIView in your application where you want it to appear. Then, you can call the getBannerView method to show banners within this UIView. Below, you can find an example of creating a UIView and displaying banners within it.
Code Block |
---|
let bannerView = UIView()
bannerView.translatesAutoresizingMaskIntoConstraints = false
self.view.addSubview(bannerView)
NSLayoutConstraint.activate([bannerView.topAnchor.constraint(equalTo: self.view.topAnchor,constant: 80),
bannerView.heightAnchor.constraint(equalToConstant: 80),
bannerView.leadingAnchor.constraint(equalTo: self.view.leadingAnchor),
bannerView.trailingAnchor.constraint(equalTo: self.view.trailingAnchor)])
bannerView.backgroundColor = .black
var props = [String:String]()
props["OM.inapptype"] = "banner_carousel"
RelatedDigital.getBannerView(properties: props) { banner in
if let banner = banner {
banner.delegate = self
banner.translatesAutoresizingMaskIntoConstraints = false
bannerView.addSubview(banner)
NSLayoutConstraint.activate([banner.topAnchor.constraint(equalTo: bannerView.topAnchor),
banner.bottomAnchor.constraint(equalTo: bannerView.bottomAnchor),
banner.leadingAnchor.constraint(equalTo: bannerView.leadingAnchor),
banner.trailingAnchor.constraint(equalTo: bannerView.trailingAnchor)])
}
} |
f you wish, you can send extra query parameters with the properties parameter. If you don't want to use it, you can change the properties parameter to properties: [String:String].
When your users perform a click action on the banner, deeplinks need to be handled and redirected by you. To do this, you can capture the URL using the RDInappButtonDelegate protocol. An example usage is as follows:
When your users click on the banner, the deeplinks should be handled and directed by you. For this, you must add BannerDelegate to the relevant class.
Code Block | ||
---|---|---|
| ||
class ViewController: UIViewController, BannerDelegate |
Then you can customize it by adding the following function.
Code Block | ||
---|---|---|
| ||
func bannerItemClickListener(url: String) {
print(url)
} |
Product Stat Notifier
The Product Stat Notifier action that you define in the RMC Panel works in Product View, Add to Cart and Add/Remove Favorites events. You must make sure that the product id is sent in these events.
...
Product recommendations are obtained by the SDK's recommend method. To get product recommendations you must pass 3 2 mandatory arguments which are zoneId, productCode and complete.
The RDProduct class looks after the following features:
Property | Type |
---|---|
code | String |
title | String |
img | String |
dest_url | String |
brand | String |
price | Double |
dprice | Double |
cur | String |
dcur | String |
freeshipping | Bool |
samedayshipping | Bool |
rating | Int |
comment | Int |
discount | Double |
attr1 | String |
attr2 | String |
attr3 | String |
attr4 | String |
attr5 | String |
If the suggested products are available for the arguments given in the Completion method, you must process the product array.
...