GitXplorerGitXplorer
t

Intercom-Test-App-for-Android

public
2 stars
3 forks
0 issues

Commits

List of commits on branch master.
Unverified
61872c60451b86f7925d0a0f99c2d0f4e066a34e

Ensure token is set

committed 6 years ago
Unverified
e5e567d058aaaffc98c19a8ce26bedae29b69092

Update dependencies + code cleanup

committed 6 years ago
Unverified
349a0fd3075f8a4ff88e98f5ab70ce01a1a94d15

Add ability to retrieve ccurrent FCM token for testing push

committed 7 years ago
Unverified
fa59590b62c0697c621d0f9141913ab1839a9392

Make multidex app

committed 7 years ago
Unverified
0cd9f8420478516630add1dab893275c18b64b89

Add support for help center

committed 7 years ago
Unverified
28b3deebbd45f55e72d0838dc5891d71de75e1c0

Add ability to set padding and set message prefill

committed 7 years ago

README

The README file for this repository.

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