Skip to content

Commit

Permalink
docs: Add information about iOS id and simulator (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Jun 29, 2023
1 parent 7ace336 commit cbcda2d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

Capacitor community plugin for native market for Play Store/App Store.

**Note:** The plugin doesn't work on iOS Simulator because it doesn't have App Store app installed.
It works on Android Virtual Devices if they have Google Play installed with an user logged in.

## Maintainers

| Maintainer | GitHub | Social | Sponsoring Company |
Expand Down Expand Up @@ -56,14 +59,22 @@ No configuration required for this plugin

```typescript
import { NativeMarket } from "@capacitor-community/native-market";
import { Capacitor } from "@capacitor/core";

/**
* This method will launch link in Play/App Store.
* @param appId - ID of your application. Eg. com.example.app
* @param appId - ID of your application.
* Eg:
* io.ionic.ioniconf on Android
* id1622127552 on iOS
* @returns void
*/
let appId = "id1622127552";
if (Capacitor.getPlatform() === "android") {
appId = "io.ionic.ioniconf";
}
NativeMarket.openStoreListing({
appId: "com.example.app",
appId: appId,
});

/**
Expand Down

0 comments on commit cbcda2d

Please sign in to comment.