Handling Tune Activity Intent Extras (Android Only)

The Tune SDK depends on the Activity launch intent's extras making it to the onResume of an activity to record the push opened event. If you have an Activity receiving the deep link or launch intents that is never displayed (so onResume is never reached) then the Tune SDK does not have an opportunity to record the push opened event.

Whether the push opened action is "open app" or "open deep link" or "execute deep action", the Tune SDK depends on the launch intents extras making it to the onResume of an Activity in the app.

If you choose to handle all of the Activity Intents - as opposed to defaulting to the Tune SDK - you must include the intents extras to ensure TUNE records the push open event.

 

Intent with Push Open Extras Example

TuneActivityLifecycleCallbacks#onActivityCreated():23: com.android.activities.MainPageActivity Push opened intent...
    Extras:
        "com.tune.ma.EXTRA_MESSAGE" => "{"appName":"MY APP","app_id":"123456789","alert":"Claim Your Free Reward Today!","ARTPID":"987654321","CAMPAIGN_ID":"246810121416","LENGTH_TO_REPORT":604800,"payload":"{\"ANA\":{\"D\":\"1\",\"CS\":\"987654321\"}}","local_message_id":"1a2b3c4d5e6f7g8h9i10j"}"

Intent without Push Open Extras Example

TuneActivityLifecycleCallbacks#onActivityCreated():23: com.android.activities.MainPageActivity Push opened intent...
    "extras" => null

No Comments

Leave a reply