I’m building my first Ionic/Cordova Plugin. The reason why I am doing this is because there currently is no plugin for the ad service my company I work for but we would still like to serve ads on our Ionic-1 mobile app. The good news is that the ad service we use (although they do not have a cordova plugin) do have two SDKs for Android and iOS.
This file has been truncated.
Use of the Adzerk iOS SDK requires iOS 8.0 or later.
Installation of the framework can be done manually by building and copying the framework into your project, or with
automatically with Carthage or CocoaPods.
Note that for manual and Carthage framework imports you may have to specify "Embedded Content Contains Swift Code" to avoid getting a linker error during build. Another way to force Xcode to load the Swift libraries is to add a single Swift source file to your project.
If you're using [Carthage](https://github.com/Carthage/Carthage), add this to your `Cartfile`:
github "adzerk/adzerk-ios-sdk" ~> 1.0
My first question is, is this possible?
Second, could you give me any pointers on how to start up with the code? I’ve read through this article
https://medium.com/ionic-and-the-mobile-web/how-to-write-cordova-plugins-864e40025f2 and have the initial set up but was wondering how to integrate the methods available in both of these SDKs into js I can use within the app.