onStart

open fun onStart(activity: Activity)

Method to call on your main activity onStart to start Batch and support URL scheme events. You must call this method before any other on Batch. Will fail and log an Error if

  • Given activity is null
  • You call it before calling start
  • Your app doesn't have android.permission.INTERNET permission

Parameters

activity

The activity that's starting