Upgrade to Pro — share decks privately, control downloads, hide ads and more …

App Invites for Android

funnelbit
September 30, 2015

App Invites for Android

funnelbit

September 30, 2015
Tweet

More Decks by funnelbit

Other Decks in Technology

Transcript

  1. ট଴Λड͚Δ w #SPBEDBTU3FDFJWFS࡞ͬͯ଴ͪߏ͑Δ public class ReferrerReceiver extends BroadcastReceiver {
 @Override


    public void onReceive(Context context, Intent intent) {
 Intent deepLinkIntent = AppInviteReferral .addPlayStoreReferrerToIntent(intent,
 , new Intent(“action_deep_link”)); LocalBroadcastManager .getInstance(context) .sendBroadcast(deepLinkIntent);
 }
 }
  2. ট଴Λड͚Δ new BroadcastReceiver() {
 @Override
 public void onReceive(Context context, Intent

    intent) {
 if (AppInviteReferral.hasReferral(intent)) {
 Intent newIntent = new Intent(intent).setClass(MainActivity.this, DeepLinkActivity.class);
 startActivity(newIntent); // ىಈ
 }
 }
 };