Menggunakan @capgo/capacitor-native-market
Plugin Capacitor Native Market untuk membuka listing dan halaman app store.
Instal
npm install @capgo/capacitor-native-market
npx cap sync
Yang Diekspos Plugin Ini
openStoreListing- Buka halaman listing aplikasi di Play Store (Android) atau App Store (iOS).openDevPage- Deep-link langsung ke halaman developer di Play Store. Hanya untuk Android.openCollection- Arahkan user ke koleksi atau top charts di Play Store. Khusus Android.openEditorChoicePage- Arahkan user ke halaman Editor's choice di Play Store. Khusus Android.
Contoh Penggunaan
openStoreListing
Buka halaman listing aplikasi di Play Store (Android) atau App Store (iOS).
import { NativeMarket } from '@capgo/capacitor-native-market';
// Open app in store
await NativeMarket.openStoreListing({
appId: 'com.example.app'
});
// Open app in specific country store (iOS only)
await NativeMarket.openStoreListing({
appId: 'com.example.app',
country: 'IT'
});
openDevPage
Deep-link langsung ke halaman developer di Play Store. Hanya untuk Android.
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openDevPage({
devId: 'Google+LLC'
});
openCollection
Arahkan user ke koleksi atau top charts di Play Store. Khusus Android.
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openCollection({
name: 'featured'
});
openEditorChoicePage
Arahkan user ke halaman Editor's choice di Play Store. Khusus Android.
import { NativeMarket } from '@capgo/capacitor-native-market';
await NativeMarket.openEditorChoicePage({
editorChoice: 'editorial_fitness_apps_us'
});
Referensi Lengkap
- GitHub: https://github.com/Cap-go/capacitor-native-market/
- Dokumentasi: /docs/plugins/native-market/
Lanjutkan dari Menggunakan @capgo/capacitor-native-market
Jika Anda menggunakan Menggunakan @capgo/capacitor-native-market untuk merencanakan persetujuan store dan distribusi, hubungkan dengan @capgo/capacitor-native-market untuk detail implementasi di @capgo/capacitor-native-market, Panduan Memulai untuk detail implementasi di Getting Started, @capgo/capacitor-in-app-review untuk detail implementasi di @capgo/capacitor-in-app-review, Menggunakan @capgo/capacitor-in-app-review untuk kapabilitas native saat menggunakan @capgo/capacitor-in-app-review, dan Capacitor OTA Updates: Panduan Persetujuan App Store untuk konteks praktis di Capacitor OTA Updates: App Store Approval Guide.