Skip to main content

cordova-plugin-market Alternative for Capacitor

cordova-plugin-market alternative for Capacitor: open Play Store and App Store listings, developer pages, and search with @capgo/capacitor-native-market.

Illustration of migrating a Cordova app to Capacitor, used for a native market plugin guide

The practical cordova-plugin-market alternative for a Capacitor app is @capgo/capacitor-native-market. It replaces cordova.plugins.market and cordova.exec callbacks with NativeMarket promises, keeps store listing and store search behavior on Android and iOS, and adds developer pages, collections, and editor choice deep links on Android. This guide lists npm facts, install steps, usage, and a Cordova to Capacitor API map.

Why leave cordova-plugin-market in Capacitor

cordova-plugin-market on npm is version 1.2.0. The last numbered release on the npm time object is 31 August 2017. The registry modified timestamp is 14 June 2022 (metadata only, not a new plugin version). The npm repository URL points to xmartlabs/cordova-plugin-market.

The published www/market.js module exposes:

  • cordova.plugins.market.open(appId, callbackContext) to open a store listing
  • cordova.plugins.market.search(key, callbackContext) to search the store

Both calls route through cordova.exec with optional success and error callbacks on callbackContext. There is no typed promise surface and no extra Play Store marketing URLs beyond open and search.

@capgo/capacitor-native-market latest on npm is 8.0.60 with a modified date of 13 November 2026. src/definitions.ts documents openStoreListing, openDevPage, openCollection, openEditorChoicePage, search, and getPluginVersion. Capgo ships fixes on an open source cadence where a human still reviews, tests and merges 50+ pull requests daily.

Install

The command below installs the npm 8.x line for Capacitor 8 (@capacitor/core >= 8). @capgo/capacitor-native-market has no 7.x release on npm; it requires Capacitor 8 or later.

bun add @capgo/capacitor-native-market
bunx cap sync

Use the bundle identifier on iOS and the application id on Android when opening your own listing. See the native market plugin docs.

Usage example

import { NativeMarket } from '@capgo/capacitor-native-market';

export async function openOurStorePage() {
  await NativeMarket.openStoreListing({ appId: 'app.capgo.demo' });
  // iOS: pass country when the app is not published in the US App Store.
  await NativeMarket.openStoreListing({ appId: 'app.capgo.demo', country: 'IT' });
}

export async function findSimilarApps() {
  // Opens Play Store search on Android and App Store search on iOS.
  await NativeMarket.search({ terms: 'capacitor plugins' });
}

On iOS, search opens an itms-apps:// App Store search URL. If iOS cannot open that URL, the promise may never settle, so do not block your UI waiting on it.

Migrating from Cordova to Capacitor

// Before (Cordova)
cordova.plugins.market.open('com.example.app', {
  success: () => console.log('opened'),
  error: (err) => console.error(err),
});
cordova.plugins.market.search('photo editor', { success: () => {} });
// After (Capacitor)
import { NativeMarket } from '@capgo/capacitor-native-market';

await NativeMarket.openStoreListing({ appId: 'com.example.app' });
await NativeMarket.search({ terms: 'photo editor' });

API mapping table

cordova-plugin-market (cordova.plugins.market) @capgo/capacitor-native-market
open(appId, callbackContext) openStoreListing({ appId, country? }) (on iOS use bundle ID, not App Store id or short name)
search(key, callbackContext) search({ terms }) (Play Store search on Android, App Store search on iOS)
callbackContext.success / error Promise resolve / reject
Not in Cordova openDevPage({ devId }) (Android only)
Not in Cordova openCollection({ name }) (Android only)
Not in Cordova openEditorChoicePage({ editorChoice }) (Android only)
Not in Cordova getPluginVersion()
Cordova plugin install bun add @capgo/capacitor-native-market plus bunx cap sync

Store deep links ship in the native binary. Use Capgo Build for releases, then adjust call-to-action copy with Capgo live updates where allowed. For the full platform move, read the Cordova to Capacitor migration guide.

Live updates for Capacitor apps

When a web-layer bug is live, ship the fix through Capgo instead of waiting days for app store approval. Users get the update in the background while native changes stay in the normal review path.

Latest from our Blog

Capgo gives you the best insights you need to create a truly professional mobile app.