Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

capacitor-piano-dmp

Ejobs37Apache-2.06.0.0TypeScript support: included

Piano Dmp integration for Capacitor JS

capacitor, plugin, native, piano, dmp, cxense

readme

capacitor-piano-dmp

Piano Dmp integration for Capacitor JS. For now it supports only sendPageView events.

Install

npm install capacitor-piano-dmp
npx cap sync

Android

Add the following line to AndroidManifest.xml

    <uses-permission android:name="android.permission.READ_PHONE_STATE" />

iOS

No changes are needed on iOS

API

<docgen-index> </docgen-index> <docgen-api>

sendPageView(...)

sendPageView(options: PageViewOptions) => Promise<void>

Send a pageview event. Pageview events are aggregated by Piano Insight. All collected pageview events are available for analysis in Insight's web interface.

Param Type
options PageViewOptions

Interfaces

PageViewOptions

Prop Type
location string
userParams Record<string, string>
customParams Record<string, string>

Type Aliases

Record

Construct a type with a set of properties K of type T

{ [P in K]: T; }

</docgen-api>