
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@ironsource-plus/cordova-plugin
Advanced tools
Support for ironSource ads in Cordova and Phonegap apps
Add support for IronSource Ads to your Cordova and Phonegap based mobile apps.
This is a fork of cordova-plugin-ironSource. It aims to be kept up to date as well as enable ad mediation. It is planned to be a drop-in replacement and will retain the same api of that plugin.
Install using cordova:
cordova plugin add @ironsource-plus/cordova-plugin
First, you'll need to construct a new instance of the plugin using new IronSourceAds.
The constructor can take 2-4 arguments. The first one is your AppKey from IronSource. The second is a user Identifier. This can be anything and is described in the IronSource docs.
The last two are optional. A callback to be ran after the plugin is initialized and true/false to enable the test suite (default false);
document.addEventListener('deviceready', function() {
var isAds = new IronSourceAds("app_key", "some_unique_userid", function(){console.log('Init has finished');}, false);
// show a rewarded ad
isAds.showRewardedAd();
// show a rewarded ad for placement RightHere
isAds.showRewardedAd("RightHere");
// show an interstitial
isAds.showInterstitial();
// launch in Android Studio/Xcode mediation integration verification
isAds.validateIntegration();
// Check is a rewarded video is available to show
isAds.isRewardedVideoAvailable(function () {
alert('Yes');
}, function () {
alert('No');
});
// Check is an interstitial is available to show
isAds.isInterstitialAdAvailable(function () {
alert('Yes');
}, function () {
alert('No');
});
// reward your users
window.addEventListener("onRewardedVideoAdClosed", function(e) {
var placement = e.placement;
console.log(placement.placementName);
console.log(placement.rewardName);
console.log(placement.rewardAmount);
}, false);
}, false);
Yep. Check out the demo project. It runs on both Android and iOS.
FAQs
Support for ironSource ads in Cordova and Phonegap apps
We found that @ironsource-plus/cordova-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.