FetchDeviceInfoAction
public final class FetchDeviceInfoAction : AirshipAction
Fetches device info.
Expected argument values: none.
Valid situations: ActionSituation.launchedFromPush,
ActionSituation.webViewInvocation, ActionSituation.manualInvocation,
ActionSituation.foregroundInteractiveButton, ActionSituation.backgroundInteractiveButton,
and ActionSituation.automation
Result value: JSON payload containing the device’s channel ID, named user ID, push opt-in status, location enabled status, and tags. An example response as JSON: { “channel_id”: “9c36e8c7-5a73-47c0-9716-99fd3d4197d5”, “push_opt_in”: true, “location_enabled”: true, “named_user”: “cool_user”, “tags”: [“tag1”, “tag2, "tag3”] }
-
Default names - “fetch_device_info”, “^+fdi”
Declaration
Swift
public static let defaultNames: [String] -
Default predicate - only accepts
ActionSituation.manualInvocationandActionSituation.webViewInvocationDeclaration
Swift
public static let defaultPredicate: @Sendable (ActionArguments) -> Bool -
accepts(arguments:Asynchronous) Declaration
Swift
public func accepts(arguments: ActionArguments) async -> Bool -
perform(arguments:Asynchronous) Declaration
Swift
public func perform(arguments: ActionArguments) async throws -> AirshipJSON?
View on GitHub