Cupid Love Introduction

This documentation will give you an understanding of how cupid love application is structured and will guide you in performing the most common functions. If you require further assistance, related to topics not covered in this documentation, then please contact us via Our Support Forum

If you want to customize this product as per your requirement, please contact us here: Our Support Forum

Author: Potenza Global Solutions

Cupid Love Components

  1. Open the ... /Main File Folder to find all the Source Files
  2. Cupid love contains:
    • CupidLove
      • WebApp ( Source code for PHP Web application )
      • iOSapp ( Source code for IOS application , Objective-C)
    • DB - (Database Script (cupidlove.sql) For Starter Kit)
    • Documentation - Documentation Folder


- Requirements

Following are the requirments to run the IOS application.

  • Xcode 8
  • Pod Setup in your Mac(installing Pods)
  • XMPP server setup (HostName)
  • AppleDeveloper a/c (For BundleIdentifier,In-App-Purchase->Identifier from iitunesconnect)
  • Database and Webservice setup on cloud server(Webservice’s link)
  • ADMOB key from “”(BannerAd,Interstitial)
  • GoogleAPI key for Google Places API for iOS
  • Facebook App key

- Configuration

Initial Setup(Pod Install)

Make sure you have set up Pods If not than use guild lines in ""

After Cocoa Pod set up follow this video for pod installation ""

A) Push Notification
Step 1: Register your app to receive notification:

To make you app support Push Notifications, your app must use an Explicit App ID.

  1. Navigate to the Apple Developer Member Center website, and click on Certificates, Identifiers & Profiles. mainpage
  2. Select Identifiers on the iOS Apps section.
  3. You will see a list of your App IDs. Click on the + button.
  4. Enter a name for your new App ID under App ID Description, choose an App Id Prefix, and under App ID Suffix, select Explicit App ID, enter your iOS app’s Bundle ID, it should match the Bundle Identifier in your Xcode project configuration and in the Info.plist file.
  5. Enable Push Notifications under App Services. Enable other services that your app will need.
  6. Click on “Continue”, confirm that all values were entered correctly. Click on “Submit”.

Now that you’ve created the App ID, you need to configure the App ID for Push Notifications.

  1. Select your new App ID and click on “Edit”.
  2. Scroll down to the Push Notifications section. Click on “Create Certificate” under “Development SSL Certificate”.configurepushnotifications
  3. Follow the instructions in the next screen to create a Certificate Signing Request (CSR) using the Keychain Access utility on your Mac. This is needed to authenticate the creation of the SSL certificate.
  4. Upload the CSR to Apple’s servers, then click on “Generate”.
  5. Add the certificate to your login keychain.
  6. Open the Keychain Access utility, and locate the certificate under “My Certificates”. It should be called “Apple Development Push Services:”. Right-click on it, select “Export”, and save it as a .p12 file. Do not enter an export password when prompted!exportcertificate

You will need to repeat the process to make the Production SSL Certificate.

Now we need to configure the Xcode project.

  1. Go to your project’s Capabilities page, then turn On Push Notifications. If there are any issues that require your attention, Xcode will let you know.4_capabilitieseditor_2x
  2. Go to the General page. Modify the Bundle Identifier to match your App ID’s Bundle Identifier.

B) XMPP Server Setup

To learn more about XMPP Server Click here

Install XMPP Server : Ubuntu, Windows

Learn how to setup XMPP Server using ejabberd: Ubuntu, Windows

C) phpMyAdmin - top

To learn how to import database in phpMyAdmin Click here

D) iOS App Import

Now we will setup our iOS to Make it communicate with our XMPP Server

  1. 1. Open downloaded folder from Codecanyon
  2. 2. Click on CupidLove.xcworkspace and open it

Wait for Xcode to load setup all files and dependecies.

NOTE: Now we have to refresh pods in order to avoid error

1. Open your "Terminal" and Install cocoapods using this command $ sudo gem install cocoapods It can take several minutes so be patient

2. In "Terminal" Navigate to your project home directory and type $ pod install It can take several minutes so be patient

Once finished your App is now ready to compile in real device or iOS Simulator.

E) Application Setup

Now we are going to open our SSXmppConstant.h file to setup our server.

  1. Setup your XMPP server Host name, Host port, User postfix, Group postfix etc.

F) App Customization

You can change app detail fromPrefixHeader.pch file.

  1. See the image to how change app detail like Appurl, image url, Google_API_Key etc.

To customizaze name and bundle identifier


Now we are going to setup our second money source by advertising. We have setup the project with Google Admob ads source

  1. 1. Google Admob
  2. Go to Admob website follow instructions
  3. Paste Your pub id in Appdelegate.m

H) In App Purchase

Now we are going to setup our next money source by in app purchase. To setup In app purchase go to and do as follows

  1. Sign In / Sign Up to your account and add new app
  2. Then add In app purchase to your app.
  3. Select any one In app purchase that you want for your app.
  4. Enter price value, start date and end date for youp app.
  5. Then save and generate product id, apple id etc.
  6. Copy that product id and paste it in PrefixHeader.pch file at kRemoveAddInAppPurchase.

I) Facebook Login
  1. Go to and follow instructions to create a new app withim facebook developers account to get Facebook APP ID
  2. In the corner click in your picture and drop-down to create new app or register to developers acoount then create new app

  3. After creating new app, Now go to Dashboard to get a Facebook APP ID
  4. Copy and paste your Facebook App ID in info.plist file and also copy in URL Schemes item 0 with prefix 'fb'.
  5. To make application available for public go to App Review change Make CupidLove public from No to Yes and also submit list of items that we need to get permission from user.

J) API key Generation

Login to google developers console and follow these steps to create API key.

  1. Select project or create new project.
  2. Go to credentials and create credential for API key.

  3. Restrict key to iOS app.
  4. Go to Dashboard and Click on enable API.
  5. Select Google Places API for iOS.

K) ADMOB key Generation

Login to and these steps to create Ad unit Ids.

  1. Go to MONATIZE tab and click on MONATIZE NEW APP.
  2. Add your app and select platform iOS.

  3. Select ad format banner and name ad unit.
  4. Select ad format Interstitial and name ad unit.