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 🙏

© 2026 – Pkg Stats / Ryan Hefner

capacitor-appodeal

v0.0.3

Published

Unofficial Appodeal Mediation Plugin for Capacitor

Readme

capacitor-appodeal

Unofficial Capacitor plugin for Appodeal Mediation Only integration.

Disclaimer: This project is not affiliated with, endorsed by, or connected to Appodeal. It is an open-source community plugin.

npm version License: MIT

Supported Platforms

| Platform | Supported | SDK Version | Notes | | :--- | :---: | :---: | :--- | | Android | ✅ | 3.12.0.1 | Native implementation | | Web | ✅ | Mock | Development/Testing only | | iOS | ❌ | — | Not implemented yet |

Compatibility

| Plugin Version | Capacitor Version | | :--- | :--- | | 0.0.x | ^6.0.0 |


Installation

1. Install the package

npm install capacitor-appodeal
npx cap sync

2. Android — add the Appodeal Maven repository (REQUIRED)

The Appodeal SDK is hosted on a custom Maven repository. Add it to your project-level android/build.gradle:

// android/build.gradle
allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url "https://artifactory.appodeal.com/appodeal" } // ← add this
    }
}

3. Android — Network Security Config (recommended)

Some ad networks require cleartext HTTP traffic. Create android/app/src/main/res/xml/network_security_config.xml:

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <base-config cleartextTrafficPermitted="true">
        <trust-anchors>
            <certificates src="system" />
        </trust-anchors>
    </base-config>
    <domain-config cleartextTrafficPermitted="true">
        <domain includeSubdomains="true">localhost</domain>
    </domain-config>
</network-security-config>

Then reference it in android/app/src/main/AndroidManifest.xml:

<application
    android:networkSecurityConfig="@xml/network_security_config"
    ...>
</application>

Configuration

Excluded ad network adapters

By default the following adapters are excluded to avoid compliance/tracking issues and reduce APK size:

| Adapter | Reason excluded | | :--- | :--- | | adjust | Analytics/attribution tracking | | appsflyer | Analytics/attribution tracking | | facebook_analytics | Meta tracking | | firebase | Includes AdMob/Google Ads components |

If you need any of these, add them manually to your app's android/app/build.gradle.


Usage

Initialize

Call initialize once, early in your app lifecycle (e.g., AppComponent constructor or app.component.ts).

import { Appodeal, AppodealAdType } from 'capacitor-appodeal';

await Appodeal.initialize({
  appKey: 'YOUR_APP_KEY',
  adTypes: AppodealAdType.BANNER | AppodealAdType.INTERSTITIAL,
  testing: true, // omit or set false in production
});

Banner

// Show banner at the bottom (default)
await Appodeal.showBanner();

// Show banner at the top
await Appodeal.showBanner({ position: AppodealAdType.BANNER_TOP });

// Hide banner
await Appodeal.hideBanner();

Interstitial

Wait for the onInterstitialLoaded event before calling showInterstitial().

const handle = await Appodeal.addListener('onInterstitialLoaded', async () => {
  await handle.remove();
  await Appodeal.showInterstitial();
});

Or check readiness defensively:

try {
  await Appodeal.showInterstitial();
} catch {
  console.warn('Interstitial not ready yet');
}

Listeners

// Banner events
Appodeal.addListener('onBannerLoaded', ({ height, isPrecache }) => {
  console.log('Banner loaded, height:', height);
});
Appodeal.addListener('onBannerFailedToLoad', () => { /* ... */ });
Appodeal.addListener('onBannerShown', () => { /* ... */ });
Appodeal.addListener('onBannerClicked', () => { /* ... */ });
Appodeal.addListener('onBannerShowFailed', () => { /* ... */ });

// Interstitial events
Appodeal.addListener('onInterstitialLoaded', ({ isPrecache }) => {
  console.log('Interstitial ready, precache:', isPrecache);
});
Appodeal.addListener('onInterstitialFailedToLoad', () => { /* ... */ });
Appodeal.addListener('onInterstitialShown', () => { /* ... */ });
Appodeal.addListener('onInterstitialShowFailed', () => { /* ... */ });
Appodeal.addListener('onInterstitialClicked', () => { /* ... */ });
Appodeal.addListener('onInterstitialClosed', () => { /* ... */ });

// Clean up all listeners at once
await Appodeal.removeAllListeners();

API Reference

Methods

| Method | Returns | Description | | :--- | :--- | :--- | | initialize(options) | Promise<void> | Initialize the SDK | | showBanner(options?) | Promise<void> | Show banner ad | | hideBanner() | Promise<void> | Hide banner ad | | showInterstitial() | Promise<void> | Show interstitial (rejects if not loaded) | | addListener(event, fn) | Promise<PluginListenerHandle> | Register an event listener | | removeAllListeners() | Promise<void> | Remove all event listeners |

AppodealAdType enum

| Value | Constant | Notes | | :---: | :--- | :--- | | 3 | INTERSTITIAL | | | 4 | BANNER | | | 8 | BANNER_BOTTOM | Use with showBanner() | | 16 | BANNER_TOP | Use with showBanner() | | 128 | REWARDED_VIDEO / NON_SKIPPABLE_VIDEO | Same value in the Appodeal SDK | | 256 | MREC | | | 512 | NATIVE | |

Events

Banner

| Event | Payload | Description | | :--- | :--- | :--- | | onBannerLoaded | { height: number, isPrecache: boolean } | Ad loaded | | onBannerFailedToLoad | {} | Ad failed to load | | onBannerShown | {} | Ad became visible | | onBannerClicked | {} | User tapped the banner | | onBannerShowFailed | {} | Ad loaded but failed to display |

Interstitial

| Event | Payload | Description | | :--- | :--- | :--- | | onInterstitialLoaded | { isPrecache: boolean } | Ad ready to show | | onInterstitialFailedToLoad | {} | Ad failed to load | | onInterstitialShown | {} | Ad displayed | | onInterstitialShowFailed | {} | Ad loaded but failed to display | | onInterstitialClicked | {} | User tapped the ad | | onInterstitialClosed | {} | User dismissed the ad |


Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

  1. Fork the repo
  2. Create your feature branch: git checkout -b feat/my-feature
  3. Commit your changes following Conventional Commits
  4. Open a Pull Request

License

MIT