0.0.2 • Published 2 months ago

capacitor-store-review v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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:

  1. In capacitor.config.ts (or capacitor.config.json)
plugins: {
  StoreReview: {
    appId: '1545567249'; // iTunes App ID.
  }
}
  1. In your module (e.g. app.module.ts)
...
import { StoreReview } from 'capacitor-store-review'

@NgModule({
	...
	providers: [
		...
		StoreReview,
	],
})
export class AppModule {}
  1. 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