Skip to content

Repository files navigation

Test Intercom App for Android

  • Uses Intercom's Android SDK https://github.com/intercom/intercom-android to easily test the SDK functionality
  • Enables testing all features of the mobile SDK without needing any server side changes (everything is self contained in the app)
  • Several things this app does is not meant to be done in production, e.g.
    • Client side secure mode hash generation. The secret key should be contained on your server and be kept a secret
    • GCM API Key. This is used for sending test pushes messages and push notifications. This should never be needed in your real mobile app

Usage

  • Fill in settings page with all necessary data (at minimum the App ID and SDK API Key)
  • Settings needed would be in Intercom: https://app.intercom.io/a/apps/_/settings/android
  • On first usage you will need to completely close the app by closing it from the multi tasking view (swipe right/left) and reopening it
  • After opening it, specify user details and login
  • To verify you have logged in, select "Show Conversations" (from the page / menu). It should show you the conversation list (if there is an error it will say "Unable to load conversations")
  • Details of the app are logged (using Log.i()) and viewable via logcat

Hardcoding data

  • If you do not wish to manually copy and paste data in the emulator, you can hardcode values in SettingsActivity.java

Specifying data using deeplinks

  • Settings page: androidTestApp://settings/?app_id=VALUE1&sdk_api_key=VALUE2&secret_key=VALUE3&gcm_api_key=VALUE4&gcm_sender_id=VALUE5
  • Test GCM Token value: androidTestApp://test_gcm_token/YOUR_TOKEN_VALUE (replace YOUR_TOKEN_VALUE with the value you wish to test)

Testing GCM

About

A test app that allows testing functionality of the Intercom Android SDK https://github.com/intercom/intercom-android/ This is a self contained app and implements some features that should not be done in a production app (e.g. client side secret keys for secure mode and GCM API key for testing push notifications). Self contained nature enables tes…

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages