Monetizr Developer Hub

Welcome to the Monetizr developer hub. Here you will find user documentation and our API reference guide to get you started.

Get Started    API Reference

iOS

Follow the steps in this section to set up and start using Monetizr's SDK for iOS.

Requires iOS version 10.0+

Step 1. Installation

Find the plugin on Github

CocoaPods

pod 'Monetizr', '~> 3.1'

Manual

Copy "Monetizr-SDK" folder to your project and resolve dependencies

Step 2. Retrieve access token

At Monetizr we are working on new reward management platform for your apps. There you will be able to manage your access tokens and related rewards, located at https://app.themonetizr.com. Until then please contact us at support@themonetizr.com to get in touch and retrieve an access token.

Access token to use for testing: 4D2E54389EB489966658DDD83E2D1
Tags to use for callbacks: "Sample shirt", "Sample pin", "Sample gift card".

Step 3. Initialize

In applicationDidFinishLaunching(_:) do the initialization with token:

Monetizr.shared.token = "4D2E54389EB489966658DDD83E2D1"

Import "Monetizr" to your project:

import Monetizr

To show reward or to get reward data and show in your custom view:

Monetizr.shared.getProductForTag(tag: String, presenter: UIViewController?, presentationStyle: UIModalPresentationStyle?) { success, error, product in ()}

If you choose to show product in a view provided in SDK you should provide presenter view and presentation style. If presentation style is not provided it will be UIModalPresentationStyle.overCurrentContext.

iOS


Follow the steps in this section to set up and start using Monetizr's SDK for iOS.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.