FIRActionCodeSettings


@interface FIRActionCodeSettings : NSObject

Used to set and retrieve settings related to handling action codes.

  • URL

    This URL represents the state/Continue URL in the form of a universal link. This URL can should be contructed as a universal link that would either directly open the app where the action code would be handled or continue to the app after the action code is handled by Firebase.

    Declaration

    Swift

    var url: URL? { get set }

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSURL *URL;
  • Indicates whether the action code link will open the app directly or after being redirected from a Firebase owned web widget.

    Declaration

    Swift

    var handleCodeInApp: Bool { get set }

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL handleCodeInApp;
  • The iOS bundle ID, if available. The default value is the current app’s bundle ID.

    Declaration

    Swift

    var iOSBundleID: String? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *iOSBundleID;
  • The Android package name, if available.

    Declaration

    Swift

    var androidPackageName: String? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *androidPackageName;
  • The minimum Android version supported, if available.

    Declaration

    Swift

    var androidMinimumVersion: String? { get }

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *androidMinimumVersion;
  • Indicates whether the Android app should be installed on a device where it is not available.

    Declaration

    Swift

    var androidInstallIfNotAvailable: Bool { get }

    Objective-C

    @property (readonly, assign, nonatomic) BOOL androidInstallIfNotAvailable;
  • Sets the Android package name, the flag to indicate whether or not to install the app and the minimum Android version supported.

    Declaration

    Swift

    func setAndroidPackageName(_ androidPackageName: String, installIfNotAvailable: Bool, minimumVersion: String?)

    Objective-C

    - (void)setAndroidPackageName:(nonnull NSString *)androidPackageName
            installIfNotAvailable:(BOOL)installIfNotAvailable
                   minimumVersion:(nullable NSString *)minimumVersion;

    Parameters

    androidPackageName

    The Android package name.

    installIfNotAvailable

    Indicates whether or not the app should be installed if not available.

    minimumVersion

    The minimum version of Android supported. If installIfNotAvailable is set to YES and the link is opened on an android device, it will try to install the app if not already available. Otherwise the web URL is used.