本地市场插件
从您的 Capacitor app 中将用户发送到您的应用程序的商店页面,以对它进行评分,更新或在 App Store 和 Google Play 上发现您的其他应用程序.
🤖 建筑与AI编码代理? 安装 Capgo 技能 所以克劳德代码,代码,光标,副驾驶,或双子座CLI知道如何安装和使用
@capgo/capacitor-native-market在您的电容应用程序中:npx skills add Cap-go/capgo-skills。然后问你的经纪人: 加入@capgo/capor-native-market到我的Capacitor应用上,并把它接上 代理设置指南 • 妇女 主机磁共振
主要特点
- 存储列表数字 :
openStoreListing()在 App Store 或 Google Play 上打开一个应用的页面. - 搜索数字 :
search()打开仓库搜索您的条款. - 开发者页面数字 :
openDevPage()在谷歌游戏. - 收款数字 :
openCollection()财务报告和审定财务报表openEditorChoicePage()在谷歌游戏. - 平台: iOS和Android. 互联网档案馆的存檔,存档日期2013-12-22. 开发者页面,集合和编辑器的选择只有Android. 在网上不可用.
为什么是本地市场?
深入链接您的用户直接与您的应用程序的商店上市,开发者页面,或搜索结果. 对以下方面至关重要:
- 推动应用审查 - 指导用户离开评级和审查
- 更新通知 - 发送用户下载最新版本
- 交叉晋升 - 链接到你的其他应用程序或开发者页面
- 搜索可见度 - 为特定术语打开商店搜索
简单,有重点的插件,可以处理所有针对您的平台存储连接逻辑.
维护者
| 维护者 | GitHub 图像 | 社会 | 赞助公司 |
|---|---|---|---|
| 马丁·多纳迪厄 | 骑师x | @martindonadieu (马丁多纳迪乌) |
维持状况:积极维持
文档
这里有最完整的医生: https://capgo.app/docs/plugins/native-market/ 互联网档案馆的存檔,存档日期2011-12-22
兼容性
| 插件版本 | 电容兼容性 | 维护 |
|---|---|---|
| 联合国 | 联合国 | ✅ |
| 页:1 | 页:1 | 应要求 |
| 页:1 | 页:1 | ❌ |
| 页:1 | 页:1 | ❌ |
说明: 此插件的主要版本沿用了Capacitor的主要版本. 使用匹配您的 Capacitor 安装的版本( 如 Capacitor 8 的插件 v8) 。 只有最新的主要版本得到积极维护.
安装
您可以使用我们的 AI 辅助设置安装插件 。 使用以下命令将 Capgo 技能添加到您的 AI 工具 :
npx skills add https://github.com/cap-go/capacitor-skills --skill capacitor-plugins
然后使用下列提示:
Use the `capacitor-plugins` skill from `cap-go/capacitor-skills` to install the `@capgo/capacitor-native-market` plugin in my project.
如果您更喜欢手动设置,请通过运行以下命令来安装插件,并遵循下面的平台特定指令:
用于 npm
npm install @capgo/capacitor-native-market
用纱线
yarn add @capgo/capacitor-native-market
同步本地文件
npx cap sync
iOS平台:无需采取进一步行动.
Android平台:不需要进一步的行动.
配置
此插件不需要配置
支持的方法
| 名称 | 机器人 | iOS系统 | 网页 |
|---|---|---|---|
| 打开站点列表 | ✅ | ✅ | ❌ |
| 打开DevPage | ✅ | ❌ | ❌ |
| 打开收集 | ✅ | ❌ | ❌ |
| 打开编辑器选择页 | ✅ | ❌ | ❌ |
| 搜索 | ✅ | ✅ | ❌ |
使用量
import { NativeMarket } from '@capgo/capacitor-native-market';
/**
* This method will launch link in Play/App Store.
* @param appId - ID of your application. Eg. com.example.app
* @param [country] - International country code if application is not published in the US App store (only for iOS). Eg. IT
* @returns void
*/
NativeMarket.openStoreListing({
appId: 'com.example.app',
country: 'IT',
});
/**
* This method will deep-link directly to an Play/App store listing page.
* @param devId - ID of developer. Eg. com.example.app
* @returns void
*/
NativeMarket.openDevPage({
devId: '5700313618786177705',
});
/**
* This method will link users to a collection or top charts.
* @param name - name of the collection. Click [here](https://developer.android.com/distribute/marketing-tools/linking-to-google-play#OpeningCollection) for android options.
* @returns void
*/
NativeMarket.openCollection({
name: 'featured',
});
/**
* This method will link users to Editor's choice page.
* @param editorChoice - ID of your application. Eg. editorial_fitness_apps_us
* @returns void
*/
NativeMarket.openEditorChoicePage({
editorChoice: 'editorial_fitness_apps_us',
});
/**
* This method will link users to custom search query.
* @param editorChoice - terms to be searched in Play/App store.
* @returns void
*/
NativeMarket.search({
terms: 'capacitor',
});
API 密码
openStoreListing(...)openDevPage(...)openCollection(...)openEditorChoicePage(...)search(...)getPluginVersion()
Capacitor 本地市场插件,用于打开应用商店的上市和页面.
打开StoreListing(...)
openStoreListing(options: { appId: string; country?: string; }) => Promise<void>
在Play Store(Android)或App Store(iOS)中推出app上市页面.
| 参数 | 类型 | 说明 |
|---|---|---|
options | { appId: string; country?: string; } | - 打开商店上市的配置 |
自: 1.0.0 (单位:千美元)
打开DevPage(...)
openDevPage(options: { devId: string; }) => Promise<void>
深链接到Play Store的开发者页面. 仅限Android.
| 参数 | 类型 | 说明 |
|---|---|---|
options | { devId: string; } | - 配置开发者ID |
自: 1.0.0 (单位:千美元)
打开集合(...)
openCollection(options: { name: string; }) => Promise<void>
链接用户到 Play Store 中的收藏或上图 . 仅限Android.
| 参数 | 类型 | 说明 |
|---|---|---|
options | { name: string; } | - 有收藏名的配置 |
自: 1.0.0 (单位:千美元)
打开编辑器选择页(...)
openEditorChoicePage(options: { editorChoice: string; }) => Promise<void>
将用户链接到Play Store中的编辑器选择页面. 仅限Android.
| 参数 | 类型 | 说明 |
|---|---|---|
options | { editorChoice: string; } | - 配置编辑器选择ID |
自: 1.0.0 (单位:千美元)
搜索(...)
search(options: { terms: string; }) => Promise<void>
以自定义搜索条件搜索 Play Store . 仅限Android.
| 参数 | 类型 | 说明 |
|---|---|---|
options | { terms: string; } | - 有搜索条件的配置 |
自: 1.0.0 (单位:千美元)
获取 PluginVersion ()
getPluginVersion() => Promise<{ version: string; }>
获取本地 Capacitor 插件版本 .
回返情况: Promise<{ version: string; }>
自: 1.0.0 (单位:千美元)
iOS 注释
如果您的应用程序没有在美国 App Store 上发布, 您可能找不到它 。 在此情况下, 您必须指定搜索工作的国家代码 .