Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
Lib
TapItSDK
example/TapitPG
README.md
TapitSdkHandler.h
TapitSdkHandler.m
TapitSdkPlugin.js

README.md

Tapit SDK Plugin for PhoneGap

Using this plugin requires iOS PhoneGap

  1. Add below frame work to your project
  2. SystemConfiguration.framework
  3. QuartzCore.framework
  4. CoreTelephony.framework
  5. CoreLocation.framework

  6. Follow steps below to configure Tapit Plugin

  • add the -obj-C flag to 'Other Linker Flags' in 'Build Settngs'

  • copy TapItSdk and Lib folder to your project

  • add Plugin entry in Cordova.plist file under 'Plugins' tag TapitSkdHandler as key-value pair

  • add TapitSdkHandler.m and TapitSdkHandler.h file to project under 'Plugins' folder

  • add TapitSdkPlugin.js file to project under 'Js' folder

  • add entry for the external hosts reachability in Cordova.plist file with value *

  1. import Tapit plugin into index.html

  2. Intialize TapitSdkPlugin with call to plugin initialize in onDeviceReady()

    TapitSdkInitialize.intializeAd([""],success,fail);

  3. you can use below code to add buttons to call plugin functions Show Banner Ad Hide Banner Ad
    Show Interstitial Ad
    Show Alert Ad as Alert Show Alert Ad as Prompt

  4. you can use below code to call plugin functions

  5. here '7527' is the zoned to be used with plugin

        // show Banner Ad
        function showBannerAdBtn()
        {
            TapitSdkShowBannerAd.callShowBannerAd(["7527"],success,fail);
        }
        // hide Banner Ad
        function hideBannerAdBtn()
        {
            TapitSdkHideBannerAd.callHideBannerAd([""],success,fail);
        }
        // show Interstiatial Ad
        function showInterstitialAdBtn()
        {
            TapitSDKShowInterstitialAd.callShowInterstitialAd(["7527"],success,fail);
        }
        // show Alert Ad as Alert
        function showAlertAdAsAlertBtn()
        {
            TapitSdkPShowAlertAd.callShowAlertAdAsAlert(["7527"],success,fail);
        }
        // show Alert Ad as Prompt
        function showAlertAdAsPromptBtn()
        {
            TapitSdkPShowPromptAd.callShowAlertAdAsPrompt(["7527"],success,fail);
        }
    
        function success(obj){
            alert("Success: "+obj);
        }
    
        function fail(errors){
            alert("Error: "+errors);
        }