This app demonstrates how Apptentive's mParticle Kit can be used to add Apptentive features to your app using mParticle.
- In
ExampleApplication.java
, supply your mParticle API Key and API Secret - Create an Apptentive account, and add your first Android app.
- Go to the mParticle providers list, and select Apptentive.
- Click Activate a Platform, and turn on Android.
- Enter your Apptentive API Key, which you can find here, and click Save.
This example app logs events to mParticle when you click any of its buttons. When these actions are logged to mParticle, they are passed through to the Apptentive SDK. You can configure Apptentive to display Interactions at any of these events.
Here is how to set up an Apptentive survey to display when you click the Tools navigation item from the hamburger menu in this app.
- Log into the Apptentive Dashboard and click create a new survey.
- Give it a name, title, and description. Add one or several questions. Click Save.
- Under Survey Targeting, select Publish survey as an independent Interaction.
- In the Where section, click Create New Event….
- Type
nav_manage
and save the event. - Note: If you have previously sent this event, you can select it without adding it above.
- Select Allow multiple responses from the same person so you can test display the survey as often as you like.
- Click Save & Continue
- Click Launch Survey
You can now display the survey by launching this app and clicking the Hamburger Menu -> Tools item.
This table shows all the events that this example app currently logs to mParticle.
Event Name | Description |
---|---|
action_settings | ActionBar Overflow: Settings |
fab_clicked | Floating Action Button |
nav_camera | Navigation: Import |
nav_gallery | Navigation: Gallery |
nav_slideshow | Navigation: Slideshow |
nav_manage | Navigation: Tools |
nav_share | Navigation: Share |
nav_send | Navigation: Send Feedback |