📱iOS
SparkWall lives on the web, but it’s designed to give your app a seamless, native feel.
URL
https://spark-wall.com/offerwall/[API_KEY]/[USER_ID]
Example
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:"https://spark-wall.com/offerwall/[API_KEY]/[USER_ID]")
let myRequest = URLRequest(url: myURL!)
webView.load(myRequest)
}}
Make sure to substitute [API_KEY] with your actual website API key and [USER_ID] with the unique identifier of the user viewing the wall on your site.
Last updated