Thinking about free marketing ? Want to give the opportunity to your user to share your app with their friends ? Maybe you just need more downloads ? Not sure where to start? Android App Invite is one of the answer you were looking for.
You will learn more about app invite is all about and why you need to care about. This talk will teach you exactly what you need to know to integrate app invite in your application.
At the end of this class, you will learn how to:
- integrate app invite in your app
- test your app invite for sending and reception of invites
- Manage invites tracking using Google Analytics API
23. Code
1. Connect Google Client API with APP Invite Service Enabled
2. Start App Invite Intent
3. handle the result in the callback
4. Check if someone installed the app from an invitation
24. mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(AppInvite.API)
.enableAutoManage(this, this)
.build();
25. mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(AppInvite.API)
.enableAutoManage(this, this)
.build();
26. mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(AppInvite.API)
.enableAutoManage(this, this)
.build();
44. Tracking ID
Create Account
Add a Mobile Project to track -> Tracking ID
Configure Analytics to process App Invites data
Create App Invite DashBoard
49. Invite sent
// Get tracker.
Tracker t = ((KitApplication) getApplication()).
tracker();
// Build and send an Event.
t.send(new HitBuilders.EventBuilder()
.setCategory(getString(R.string.category_id))
.setAction(getString(R.string.sent))
.build());
50. Invite sent
// Get tracker.
Tracker t = ((KitApplication) getApplication()).
tracker();
// Build and send an Event.
t.send(new HitBuilders.EventBuilder()
.setCategory(getString(R.string.category_id))
.setAction(getString(R.string.sent))
.build());
51. Invite received
Tracker t = ((MYApplication) getApplication()).
tracker();
// Build and send an Event.
t.send(new HitBuilders.EventBuilder()
.setCategory(getString(R.string.category_id))
.setAction(getString(R.string.accepted))
.build());