Test the integration

These steps verify the integration is complete and your application is communicating with the Sense360 back-end correctly.

Requirements

  • You have provided your Application ID to Medallia Support and they have confirmed you have been set up.

  • You have completed all the steps in this page.

  • You are testing it on a real device with a SIM card and with location enabled.

  • You are connected to a WiFi network.

  • If your application is running Android M+, all relevant permissions are granted.

Data verification details

The Data collection verification progress notification in the status bar guides you through the process. If you receive a failed message at any time, check the requirements are completed and try again.

On Android Oreo, the Sense360 Android SDK creates a notification channel named Testing for showing progress notifications.

  1. Add a call to Sense360Testing.verifyDataCollection()
    The activity parameter must be an instance of an Activity. You can pass this if this code is supposed to be called from an Activity.
    Sense360Testing.verifyDataCollection(activity, BuildConfig.DEBUG);
  2. Build and run the application
  3. Identify the call trigger
    Locate where the application triggers the call to Sense360.verifyDataCollection()
  4. Wait two minutes
    The SDK collects and uploads test sensor data. Your phone should go through these stages:
    Configuration downloading…
    Pulling location
    Pulling sensors…
    Uploading event…
    Finished successfully.
    In case the process hangs at Configuration downloading..., Annotating event..., or Uploading event..., check your Internet connection and look into logcat. If the problem is not due to the Internet connection, contact Medallia Support and provide all the warning and error messages from logcat that are coming from the Sense360 process.
  5. Contact Medallia Support to check your data.
    Important: Make sure you remove the call to Sense360Testing.verifyDataCollection before releasing to production.
You have tested your implementation and verified your data.