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 channelCreationDelayEnabled
flag and set it to
YES in the
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> ... <key>channelCreationDelayEnabled</key> <true/> </dict> </plist>
Then enable channel registration by calling the enableChannelCreation method.