0.0.2 • Published 2 months ago
capacitor-store-review v0.0.2
capacitor-store-review
Store Review capacitor plugin
Currently only works on ios, but android support will be coming soon
Available methods:
navigateToAppStore(): Promise<void>
promtForRating(): Promise<void>
Usage example:
- In
capacitor.config.ts
(orcapacitor.config.json
)
plugins: {
StoreReview: {
appId: '1545567249'; // iTunes App ID.
}
}
- In your module (e.g.
app.module.ts
)
...
import { StoreReview } from 'capacitor-store-review'
@NgModule({
...
providers: [
...
StoreReview,
],
})
export class AppModule {}
- In your main component (e.g.
app.component.ts
)
...
import { StoreReview } from 'capacitor-store-review'
@Component()
export class AppComponent {
constructor(private storeReview: StoreReview) {}
someUserAction() {
this.storeReview.promtForRating()
}
}
// TODO docs