Primer iOS SDK - Instantly deploy native screens without writing code

Overview

Primer iOS SDK

CocoaPods Compatible Carthage Compatible Platform

Instantly deploy native screens without writing code. Primer enables you to design and test new user experiences, and personalize them for each user.

The Primer iOS SDK requires a free account to be created at https://goprimer.com, and your app to have a deployment target of at least iOS 8.

Get Started

  • We have a Quick Start Guide to help you get Primer up and running in your iOS app in less than 10 minutes.

  • If your app uses user accounts, follow up with our Quick Authentication Guide to get account authentication with Primer tied into your app's user system.

  • Upgrading from v2? We have an Upgrade Guide to cover you.

Installation

CocoaPods

To integrate using CocoaPods, add the necessary sources and the Primer pod to your Podfile:

pod 'Primer', '~> 3.6'
Carthage

To integrate using Carthage, add the following to your Cartfile:

3.6"">
github "goprimer/primer-ios-sdk" "~> 3.6"

Don't forget to add the path to the framework under "Input Files" for the copy-frameworks script Build Phase:

$(SRCROOT)/Carthage/Build/iOS/Primer.framework

Then add the AdSupport.framework in the Linked Frameworks and Libraries section of the General tab of your app target's settings.

Manually

To integrate manually please take a look at the Manual Integration section of our Quick Start Guide.

Integration

iOS 9 introduced App Transport Security that impacts your app and the Primer iOS SDK integration. To finish your integration you need to whitelist the Primer domains in your app by adding the following to your application's info plist.

<key>NSAppTransportSecuritykey>
<dict>
    <key>NSExceptionDomainskey>
    <dict>
        <key>goprimer.comkey>
        <dict>
            <key>NSIncludesSubdomainskey>
            <true/>
            <key>NSThirdPartyExceptionAllowsInsecureHTTPLoadskey>
            <true/>
        dict>
    dict>
dict>

Usage

Start the SDK

First import Primer by adding #import ( or import Primer for Swift) at the top of your application's delegate. Then in your -application:didFinishLaunchingWithOptions: implementation call our start method with your SDK token (you can find it in your Project Settings).

#import <Primer/Primer.h>

- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Initialize the Primer SDK
    [Primer startWithToken:@"YOUR_APP_TOKEN"];
    return YES;
}
Present Onboarding

The most common time to present an onboarding experience is right when the application launches. The best way of doing this in most of the applications is by calling the presentation method in the -viewDidLoad of your first view controller to be presented to the user on app load.

To let the SDK automatically present an onboarding experience just simply call the +presentExperience method.

#import <Primer/Primer.h>
  
- (void)viewDidLoad {
    [super viewDidLoad];
    // Present the Primer onboarding experience
    [Primer presentExperience];
}

Contact Us

Need help or have questions? Please contact us at [email protected] and we will provide you personal support to guarantee success in your app!

You might also like...
Release repo for Gini Bank SDK for iOS
Release repo for Gini Bank SDK for iOS

Gini Bank SDK for iOS The Gini Bank SDK provides components for capturing, reviewing and analyzing photos of invoices and remittance slips. By integra

Da Xue Zhang Platform Lvb iOS SDK

Cloud_Lvb_SDK iOS API Reference Dxz Meeting iOS SDK是为 iOS 平台用户音视频服务的开源 SDK。通过大学长开放平台自研RTC,RTM系统,为客户提供质量可靠的音视频服务。 类 类名 描述 CLS_PlatformManager SDK的音视频主要

PayPal iOS SDK

PayPal iOS SDK Welcome to PayPal's iOS SDK. This library will help you accept card, PayPal, Venmo, and alternative payment methods in your iOS app. Su

Unofficial Notion API SDK for iOS & macOS
Unofficial Notion API SDK for iOS & macOS

NotionSwift Unofficial Notion SDK for iOS & macOS. This is still work in progress version, the module interface might change. API Documentation This l

150,000+ stickers API & SDK for iOS Apps.
150,000+ stickers API & SDK for iOS Apps.

English | 한국어 Stipop UI SDK for iOS Stipop SDK provides over 150,000 .png and .gif stickers that can be easily integrated into mobile app chats, comme

Spotify SDK for iOS
Spotify SDK for iOS

Spotify iOS SDK Overview The Spotify iOS framework allows your application to interact with the Spotify app running in the background on a user's devi

Headless iOS/Mac SDK for saving stuff to Pocket.
Headless iOS/Mac SDK for saving stuff to Pocket.

This SDK is deprecated Howdy all! 👋 Thanks for checking out this repo. Your 👀 mean a lot to us. 💗 Unfortunately, this project is deprecated, and th

Evernote Cloud SDK for iOS
Evernote Cloud SDK for iOS

Evernote Cloud SDK 3.0 for iOS This is the official Evernote SDK for iOS. To get started, follow the instructions bellow. Additional information can b

iOS SDK for the Box Content API
iOS SDK for the Box Content API

Box iOS SDK Getting Started Docs: https://developer.box.com/guides/mobile/ios/quick-start/ NOTE: The Box iOS SDK in Objective-C (prior to v3.0.0) has

Releases(3.6.0)
MbientLab 2 Feb 5, 2022
Px-mobile-sdk-demo-app - PerimeterX Mobile SDK - Demo App

About PerimeterX PerimeterX is the leading provider of application security solu

PerimeterX 1 Nov 20, 2022
Alter SDK is a cross-platform SDK consisting of a real-time 3D avatar system, facial motion capture, and an Avatar Designer component built from scratch for web3 interoperability and the open metaverse.

Alter SDK is a cross-platform SDK consisting of a real-time 3D avatar system, facial motion capture, and an Avatar Designer component built from scratch for web3 interoperability and the open metaverse.

Alter 45 Nov 29, 2022
Native iOS implementation of RadarCOVID tracing client using DP3T iOS SDK

RadarCOVID iOS App Introduction Native iOS implementation of RadarCOVID tracing client using DP3T iOS SDK Prerequisites These are the tools used to bu

Radar COVID 146 Nov 24, 2022
Twitter Kit is a native SDK to include Twitter content inside mobile apps.

Twitter will be discontinuing support for Twitter Kit on October 31, 2018. Read the blog post here. Twitter Kit for iOS Background Twitter Kit is a na

Twitter Archive 674 Dec 18, 2022
Sample app to demonstrate the integration code and working of Dyte SDK for iOS, using Objective-C.

iOS sample app (using Objective-C) by dyte Sample app to demonstrate the usage of Dyte iOS SDK Explore the docs » View Demo · Report Bug · Request Fea

Dyte 8 Nov 26, 2021
Install and debug iPhone apps from the command line, without using Xcode

ios-deploy Install and debug iOS apps from the command line. Designed to work on un-jailbroken devices. Requirements macOS You need to have a valid iO

null 3k Jan 8, 2023
TelegramStickersImport — Telegram stickers importing SDK for iOS

TelegramStickersImport — Telegram stickers importing SDK for iOS TelegramStickersImport helps your users import third-party programaticaly created sti

null 35 Oct 26, 2022
Muxer used on top of Feed iOS SDK for airplay

FeedAirplayMuxer Muxer used on top of Feed iOS SDK for airplay purposes. Demo Project --> https://github.com/feedfm/AirplayDemo Feed Airplay Muxer is

Feed Media 0 May 6, 2022
Basispay IOS SDK Version 2

BasisPay-IOS-KIT BasisPay IOS Payment Gateway kit for developers INTRODUCTION This document describes the steps for integrating Basispay online paymen

null 0 Oct 21, 2021