npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cordova-plugin-vungle

v1.0.4

Published

Vungle ads for Apache Cordova

Downloads

21

Readme

cordova-plugin-vungle

Vungle ads for Apache Cordova

WARNING: This plugin available only for iOS.

Install plugin

$ cordova plugin add cordova-plugin-vungle

The plugin.xml doesn't have ablity to put embedded frameworks to your project automaticly (or I didn't find the solution), so find VungleSDK.embeddedFramework in sources (src/ios) and drag & drop it to the directory into Xcode under Frameworks.

IMPORTANT: The VungleSDK.embeddedframework folder should be added as a group (yellow folder) and not as a reference (blue folder).

add framework to the iOS project

Methods

Vungle.setup(success_callback, error_callback, debugMode, appID)

Initial method wich connect to Vungle.
(boolean) debugMode - if set to true you could see debug output from Vungle SDK.
(string) appID - the appID of your app in Vungle Dashboard.

Vungle.requestAd(success_callback, error_callback)

When success callback was emitted you can show an ad.

Vungle.showAdWithOptions(success_callback, error_callback, options)

Calling this method will show an ad.
Success callback returns info about the view.
Options is an object of Vungle options, defined here in "Customized Ad Experience" section.

Example

let appID = 'VungleAppID';
let options = {
  VunglePlayAdOptionKeyPlacement: 'default',
  VunglePlayAdOptionKeyIncentivized : true,
  VunglePlayAdOptionKeyIncentivizedAlertBodyText : "Are you sure?",
  VunglePlayAdOptionKeyIncentivizedAlertCloseButtonText : "Yes",
  VunglePlayAdOptionKeyIncentivizedAlertContinueButtonText : "No, I want to get reward.",
  VunglePlayAdOptionKeyIncentivizedAlertTitleText : "Attention!"  
};

Vungle.setup(() => {
  Vungle.requestAd(() => {
    Vungle.showAdWithOptions((info) => {
      console.log(info);
    }, (error) => {
      console.log(error);
    }, options);
  }, () => {
    console.log('Vungle request ad failed.');
  })
}, () => {
   console.log('Vungle setup failed.');
}, true, appID);

paypal