Giter VIP home page Giter VIP logo

cordova-plugin-iad's Introduction

Cordova iAd Plugin

by Shazron Abdullah

Adding the Plugin to your project

Using this plugin requires Cordova and iAd. iAd requires at least the iOS 4 SDK.

  1. Make sure your Cordova Xcode project has been updated for Cordova 1.6.0
  2. Add the "iAd" framework to your Frameworks folder, and set it to be weak linked (see "Weak Linking the iAd Framework" section below)
  3. Add the .h and .m files to your Plugins folder in your project (as a Group "yellow folder" not a Reference "blue folder")
  4. Add the .js files to your "www" folder on disk, and add reference(s) to the .js files as <script> tags in your html file(s)
  5. Make sure you check the "RELEASE NOTES" section below!
  6. Your App must be added to https://iad.apple.com/itcportal/ to make $

Weak Linking the iAd Framework

  1. In your project, under "Targets", double click on the Target item
  2. Go to the "General" Tab, under "Linked Libraries"
  3. For the iAd Framework, change the value from "Required" to "Weak"

FUTURE FEATURES

  • Landscape mode iAds
  • Showing of other ad network ads in place of iAds, if no iAds are available

RELEASE NOTES

20130730

  • Cordova 3.0.0 support (@LimingXie)

20120409

  • Changed license to Apache 2.0 License
  • Updated for Cordova 1.6.0 (backwards compatible to earlier versions as well)
  • wrapped object in function closure (to prevent pollution of the global namespace)

20120308

  • Cordova 1.5.0 support (@RandyMcMillan)

20100712

  • Initial release
  • Only supports portrait iAd banners
  • Not tested on a 3.x device
  • WebView initial size being oversized is a PhoneGap Core issue, and is not addressed in this plugin. When an ad is shown, it correctly sizes the WebView, and when the ad is hidden, sets the WebView back to its original size.
  • Not tested with any other native UI plugins, like TabBar, and will not play nice with them (until we get a better layout management system/plugin)

20110627

  • Requires PhoneGap 0.9.6
  • Fixed size issues
  • Orientation change handling
  • Works on iPad 4.x
  • Still does not play nice with other native UI plugins like TabBar (yet)

BUGS AND CONTRIBUTIONS

Patches welcome! Send a pull request. Since this is not a part of Cordova Core (which requires an Apache iCLA), this should be easier.

Post issues in the PhoneGap Google Groups, include in the subject heading - "AdPlugin" or on Github (preferred)

LICENSE

Copyright 2012 Shazron Abdullah

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

cordova-plugin-iad's People

Contributors

eddyverbruggen avatar

Watchers

James Cloos avatar Jeremy Kenedy avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.