Executes this Callable HTTPS trigger asynchronously.
The data passed into the trigger can be any of the following types:
nil or NSNull
String
NSNumber, or any Swift numeric type bridgeable to NSNumber
[Any], where the contained objects are also one of these types.
[String: Any] where the values are also one of these types.
The request to the Cloud Functions backend made by this method automatically includes a
Firebase Installations ID token to identify the app instance. If a user is logged in with
Firebase Auth, an auth ID token for the user is also automatically included.
Firebase Cloud Messaging sends data to the Firebase backend periodically to collect
information
regarding the app instance. To stop this, see Messaging.deleteData(). It
resumes with a new FCM Token the next time you call this method.
Executes this Callable HTTPS trigger asynchronously. This API should only be used from
Objective-C.
The request to the Cloud Functions backend made by this method automatically includes a
Firebase Installations ID token to identify the app instance. If a user is logged in with
Firebase Auth, an auth ID token for the user is also automatically included.
Firebase Cloud Messaging sends data to the Firebase backend periodically to collect
information
regarding the app instance. To stop this, see Messaging.deleteData(). It
resumes with a new FCM Token the next time you call this method.
Executes this Callable HTTPS trigger asynchronously.
The request to the Cloud Functions backend made by this method automatically includes a
FCM token to identify the app instance. If a user is logged in with Firebase
Auth, an auth ID token for the user is also automatically included.
Firebase Cloud Messaging sends data to the Firebase backend periodically to collect
information
regarding the app instance. To stop this, see Messaging.deleteData(). It
resumes with a new FCM Token the next time you call this method.
Throws
An error if the Cloud Functions invocation failed.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-15 UTC."],[],[],null,["# FirebaseFunctions Framework Reference\n\nHTTPSCallable\n=============\n\n @objc(FIRHTTPSCallable)\n public final class HTTPSCallable : NSObject, Sendable\n\nA `HTTPSCallable` is a reference to a particular Callable HTTPS trigger in Cloud Functions.\n[Public Properties\n-----------------](#/Public-Properties)\n\n- `\n ``\n ``\n `\n\n ### [timeoutInterval](#/c:@M@FirebaseFunctions@objc(cs)FIRHTTPSCallable(py)timeoutInterval)\n\n `\n ` \n The timeout to use when calling the function. Defaults to 70 seconds. \n\n #### Declaration\n\n Swift \n\n @objc\n public var timeoutInterval: TimeInterval { get set }\n\n- `\n ``\n ``\n `\n\n ### [call(_:completion:)](#/s:17FirebaseFunctions13HTTPSCallableC4call_10completionyypSgn_yAA0C6ResultCSg_s5Error_pSgtScMYcctF)\n\n `\n ` \n Executes this Callable HTTPS trigger asynchronously.\n\n The data passed into the trigger can be any of the following types:\n - `nil` or `NSNull`\n - `String`\n - `NSNumber`, or any Swift numeric type bridgeable to `NSNumber`\n - `[Any]`, where the contained objects are also one of these types.\n - `[String: Any]` where the values are also one of these types.\n\n The request to the Cloud Functions backend made by this method automatically includes a\n Firebase Installations ID token to identify the app instance. If a user is logged in with\n Firebase Auth, an auth ID token for the user is also automatically included.\n\n Firebase Cloud Messaging sends data to the Firebase backend periodically to collect\n information\n regarding the app instance. To stop this, see `Messaging.deleteData()`. It\n resumes with a new FCM Token the next time you call this method. \n\n #### Declaration\n\n Swift \n\n @nonobjc\n public func call(_ data: sending Any? = nil,\n completion: @escaping @MainActor (../Classes/HTTPSCallableResult.html?,\n Error?)\n -\u003e Void)\n\n #### Parameters\n\n |--------------------|---------------------------------------------------------|\n | ` `*data*` ` | Parameters to pass to the trigger. |\n | ` `*completion*` ` | The block to call when the HTTPS request has completed. |\n\n- `\n ``\n ``\n `\n\n ### [__call(completion:)](#/c:@M@FirebaseFunctions@objc(cs)FIRHTTPSCallable(im)callWithCompletion:)\n\n `\n ` \n Executes this Callable HTTPS trigger asynchronously. This API should only be used from\n Objective-C.\n\n The request to the Cloud Functions backend made by this method automatically includes a\n Firebase Installations ID token to identify the app instance. If a user is logged in with\n Firebase Auth, an auth ID token for the user is also automatically included.\n\n Firebase Cloud Messaging sends data to the Firebase backend periodically to collect\n information\n regarding the app instance. To stop this, see `Messaging.deleteData()`. It\n resumes with a new FCM Token the next time you call this method. \n\n #### Declaration\n\n Swift \n\n @objc(callWithCompletion:)\n public func __call(completion: @escaping @MainActor (../Classes/HTTPSCallableResult.html?,\n Error?) -\u003e Void)\n\n #### Parameters\n\n |--------------------|---------------------------------------------------------|\n | ` `*completion*` ` | The block to call when the HTTPS request has completed. |\n\n- `\n ``\n ``\n `\n\n ### [call(_:)](#/s:17FirebaseFunctions13HTTPSCallableC4callyAA0C6ResultCypSgYaKF)\n\n `\n ` \n Executes this Callable HTTPS trigger asynchronously.\n\n The request to the Cloud Functions backend made by this method automatically includes a\n FCM token to identify the app instance. If a user is logged in with Firebase\n Auth, an auth ID token for the user is also automatically included.\n\n Firebase Cloud Messaging sends data to the Firebase backend periodically to collect\n information\n regarding the app instance. To stop this, see `Messaging.deleteData()`. It\n resumes with a new FCM Token the next time you call this method. \n Throws\n An error if the Cloud Functions invocation failed. \n\n #### Declaration\n\n Swift \n\n @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *)\n public func call(_ data: Any? = nil) async throws -\u003e sending sending ../Classes/HTTPSCallableResult.html\n\n #### Parameters\n\n |--------------|------------------------------------|\n | ` `*data*` ` | Parameters to pass to the trigger. |\n\n #### Return Value\n\n The result of the call."]]