Method Method detail
Integration steps on the console to add reward functionality Easy and step-wise integration process on console which can help user to setup reward into an existing mobile application.
Integration step to add Baked Reward SDK Easy and step-wise integration process which can help user to integrate baked reward module into an existing mobile application.
Reward Callback Method Baked Reward callback which can be used further inside the user existing app. For example if user click creator button from the reward module then user will have a call back so the user can take appropriate action against the user action.
Baked Reward SDK

The SDK has an option to use the predefined reward module as a separate component that can be integrated into existing applications and can be launched within any UIViewController via any user-defined CTA.

Integration steps on console to add Reward functionality into your app:
Step 1: Go to the console left menu option and click Rewards → Point definitions
Step 2: Click on reward settings icon which is on top left corner of centre panel.
Step 3: Enable Reward section
Also, enable “Show record icon on discover section “if you need reward in your discover section or in your discover core SDKs methods
Step 4: Provide earned point and event count into point definition section as shown in the screen shot.
Step 5:Upload Coupon to redeem inside the app
  • Click on coupon menu option in the left menu
  • Click on Add Coupon CTA on the top right corner of the screen
  • Click on upload coupon option from the dropdown
  • Upload coupon image and add meta info as instructed in console.
Steps 6:Create coupon
  • Click on Add Coupon CTA on the top right of centre screen
  • Click on create coupon option from the dropdown
  • Add Coupon image either by selecting or by drag and drop in desired image section
  • Add coupon title and other coupon meta info required by the console to create the coupon.
  • Integration steps to add Baked Reward SDK into your existing app:
    Add the below pod dependency into your pod file
    • To add only core module pod dependency, add below mentioned line
      		pod 'GluedInCoreSDK'
      		
      		
    • To add Baked the Reward module into the project, add below pod SDK along with the core dependency
      
      pod 'GluedInRewardSDK'
      
  • Reward:
    Class Name: GluedInRewardSDK
    Protocol Class:RewardDelegate
    Integration Steps:
    • Create the entry point from where you want to load the reward module into your application/Module
    • Write the navigation flow on self and call the reward controller as show in code snippet.
    • Convenient to load baked reward module and its protocol callback methods.
      self.navigationController?.pushViewController(
            GluedInReward.shared.getRewardViewController(
                 delegate: self) ?? UITabBarController(), 
            animated: true)
      
    • How to call?
      // Baked reward method to launch reward module
      
      // Option to launch baked reward by clicking on reward button
      // Controller can be open from any button or bottom bar or load screen or any user interction option
      
          @IBAction func callToLaunchBakedReward(_ sender: Any) {
              GluedInCore.shared.initSdk {
                      let VW: UIViewController = GluedInReward.shared.getRewardViewController(delegate: self) ?? UITabBarController()
                      self.navigationController?.pushViewController(VW, animated: true)
              } failure: { error, code in
                  print(error)
                  print(code)
              }
          }
      
  • Available Callback Methods: Below are the methods which will be triggered on any user action on reward module.
     func showLoginRegisterPopup(navigationController: UINavigationController?) {
            print("showLoginRegisterPopup")
        }
        
        func showFeedView(navigationController: UINavigationController?) {
            print("showFeedView")
        }
        
        func showDiscoverView(navigationController: UINavigationController?) {
            print("showDiscoverView")
        }
        
        func showCreatorView(navigationController: UINavigationController?) {
            print("showCreatorView")
        }
    
    Sample App to Download and Use:https://dg824galpjzhq.cloudfront.net/iOS/MT/GluedInRewardLaunchSampleApp_V2.0.3.zip