📱iOS

The YungPoints Offerwall is hosted on the web giving your application a native look-and-feel.

To integrate into your iOS app, either open the offerwall in Safari or use a web view to show the offerwall inside your app.

URL

https://jdcurrent.com/offers/31/YourTrackingID

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://jdcurrent.com/offers/31/YourTrackingID")
       let myRequest = URLRequest(url: myURL!)
       webView.load(myRequest)
   }}

Please replace YourTrackingID with a Unique User ID

Last updated