Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

dynata/publisher-ios-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Peanut Labs Reward Center - Publisher iOS SDK

Peanut Labs connects your users with thousands of paid online surveys from big brands and market researchers. This SDK allows you to integrate our Reward Center within your iOS application.

#The Reward Center

The Reward Center lists surveys and offers best suited for each of your members. It is highly customizable and positively engaging.

You get paid whenever your members complete a listing, and get to reward them back in the virtual currency of your choice.

All of this and much more is configured and monitored through our Publisher Dashboard. To learn more and get access to our full set of tools, get in touch with us at [email protected]

#Integration

Check out our integration guide for step by step instructions on getting up and running with our Reward Center within your iOS application.

#Changelog v0.6

  • Add program id support into ios SDK

v0.5

  • Updated iOS SDK bar behavior
    1. Hide sdk bar for profiler modal
    2. Hide sdk bar for pre-screener modal
    3. Hide sdk bar for survey landing page
    4. 'Back' button for main reward center page sdk bar update

v0.4

  • Changed "Done" button to "Home" button and replaced into right side
  • Replaced "X" button to "Exit" and moved it to the right side
  • After done with survey "Done" button led back to the application, changed it into lead back to rewards center
  • Supports custom url parameters
  • Supports date of birth url parameter
  • Supports gender url parameter
  • Automatically sets locale for rewards center depends on device locale

v0.3

  • Activity Indicator does not cover the toolbar anymore
  • Fixing the frequent connectivity error issue

v0.2

  • Always generate new user Id if the user switches account
  • Support for all orientations on the iPhone
  • Open Rewards Center.
Open Rewards Center with User Id
[plManager setAppId:1111];
[plManager setAppKey:@"APP_KEY_HERE"];
[plManager setEndUserId:@"END_USER_ID_HERE"];
  • Add dob and gender as a parameter
Setting gender // 1(male) or 2(female)
[plManager setSex: @"1"];

Setting Dob // MM-DD-YYYY
[plManager setDob: @"11-09-1999"];
First parameter should be var_key and second parameter should be var_val

[plManager addCustomParameter:@"firstName" value:@"Bilguun"];
[plManager addCustomParameter:@"lastName" value:@"Oyunchimeg"];
Setting program id // your program id name
[plManager setProgramId: @"example_program_id"];

About

Peanut Labs Rewards Center SDK for iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •