Delay Channel Registration

Delay channel registration from occurring on the application’s first run.

When an end user runs your application for the first time after installing it, a channel is created and returned to Airship. The channel registration automatically occurs on the application’s first run. This channel then becomes the primary identifier used to address notifications and/or messages to the device.

In special situations where you do not want channel registration to occur on the application’s first run, a configuration flag can be used to delay channel registration and a method can be used to enable channel registration. Once a channel is created, the flag will be ignored.

To delay channel registration, add the AirshipConfigOptions.channelCreationDelayEnabled flag and set it to true in the airshipconfig.properties file.

# Delay channel registration
channelCreationDelayEnabled = true

Then enable channel registration by calling the AirshipChannel.enableChannelCreation method.

UAirship.shared().getChannel().enableChannelCreation();