Add Your Channel ID To a Test Group

When sending your first notification, you will choose Test Users as your audience. Follow these steps to find your channel ID and add it to a test group.

 Important

Your channel ID is only available if you have already integrated the Airship SDK with your app or website. If you have not yet integrated the SDK, follow the steps in Create a Messaging Project.

A test group is a reusable audience group that can be used as a recipient for test messages. You have two options for finding your channel ID and adding it to a test group:

Option 1: Speak with one of your developers about getting your mobile app or web channel added to a test group.

Option 2: Find your channel ID and add it to a test group. Follow the steps on this page.

Find Your Mobile App Channel ID

You must first build into your mobile app a mechanism to expose the device's Channel ID An Airship-specific unique identifier used to address a channel instance, e.g., a mobile app, web browser, email address. to the console.

You can view the console with these tools:

If you didn't write the device identifier to the console, you can use the steps here to help retrieve it: Using Charles Proxy to profile an Airship Implementation.

 Tip

Even if you're comfortable with using Charles Proxy, you may want to speak with your developer before you attempt to retrieve your Channel ID yourself. Your app may have been designed with a hidden feature that allows you to quickly retrieve your ID, saving you the difficulty of working with Charles Proxy.

Find Your Web Browser Channel ID

A channel ID is an Airship-specific unique identifier used to address a channel instance, e.g., a mobile app, web browser, email address. To access your web channel ID, you will need to open the Developer console in your browser and paste in a small amount of code. Instructions for Google Chrome and Mozilla Firefox are provided.

  1. Open the console via keyboard shortcut or the menu.

    Google Chrome Keyboard Shortcuts: In macOS you can go directly to the console with Cmd+Opt+J. In Windows, the shortcut is Ctrl+Shift+J.

    Google Chrome Menu: Click the three dots to the right of the address bar, select More tools... » Developer tools, then select the Console tab.

    Mozilla Firefox Keyboard Shortcuts: In macOS you can go directly to the console with Cmd+Opt+K. In Windows, the shortcut is Ctrl+Shift+K.

    Mozilla Firefox Menu: Click the three horizontal lines to the right of the address bar, click the Developer icon, then select Web Console. It will open to the Web Console tab.

  2. Paste UA.then(sdk => {console.log(sdk.channel.id)}) in the console, then hit Enter. The resulting line is the channel ID.

Create a Test Group

 Note

Make sure to enter a channel ID as the User Identifier.

  1. Open your messaging project and go to Audience » Test Groups.
  2. Click Create Test Group.
  3. Enter a name for the group of test users, then click Create.
  4. Click Add Test User, then enter a User Name and User Identifier.

    • User Name: Either provide a personal name or description to identify this user.
    • User Identifier: Enter a channel ID or email address.
  5. Click Add.

Now you are ready to send your first message.