UARateAppAction

@interface UARateAppAction : UAAction

Links directly to app store review page or opens an app rating prompt.

This action is registered under the names rate_app_action and ^ra.

The rate app action requires your application to provide an itunes ID as an argument value, or have it set on the UARuntimeConfig instance used for takeoff. The itunes ID can be set on the UARuntimeConfig instance directly via UARuntimeConfig’s itunesID property, or by setting the itunesID as an NSString value in the AirshipConfig.plist under the key itunesID.

Expected argument values: show_link_prompt:Required Boolean. If NO action will link directly to the iTunes app review page, if YES action will display a rating prompt. Defaults to NO if nil. link_prompt_title: Optional String. String to override the link prompt’s title. Title over 24 characters will be rejected. Header defaults to Enjoying ? if nil. link_prompt_body: Optional String. String to override the link prompt’s body. Bodies over 50 characters will be rejected. Body defaults to Tap Rate App to rate it on the App Store. if nil. itunes_id: Optional String. The iTunes ID for the application to be rated.

Valid situations: UASituationForegroundPush, UASituationLaunchedFromPush, UASituationWebViewInvocation UASituationManualInvocation, UASituationForegroundInteractiveButton, and UASituationAutomation

Result value: nil

  • Returns an NSArray of NSNumbers representing the time intervals for each call to display the link prompt since epoch. Timestamps older than 1 year are automatically removed. Timestamps will only be collected for release builds.

    Declaration

    Objective-C

    - (NSArray *)rateAppLinkPromptTimestamps;

    Swift

    func rateAppLinkPromptTimestamps() -> Any!
  • Returns an NSArray of NSNumbers representing the time intervals for each call to display the system prompt since epoch. Timestamps older than 1 year are automatically removed. Timestamps for debug and release builds will be collected in separate stores.

    Declaration

    Objective-C

    - (NSArray *)rateAppPromptTimestamps;

    Swift

    func rateAppPromptTimestamps() -> Any!