fix(firebase-x): setConfigSettings function input parameters aligned with firebase-x plugin (#4757)

* Implement fix

* revert changes to firebase

* correct success callback

* fix jsdoc

* fix return type
This commit is contained in:
Art Turanoff 2024-04-17 19:26:08 +10:00 committed by GitHub
parent d607550573
commit adb330aa63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,7 +116,7 @@ export interface MessagePayloadAps {
alert?: {
title: string;
body: string;
}
};
}
export interface MessagePayload {
title?: string;
@ -830,13 +830,20 @@ export class FirebaseX extends AwesomeCordovaNativePlugin {
}
/**
* Android only. Change the settings for the FirebaseRemoteConfig object's operations.
* Change the settings for the FirebaseRemoteConfig object's operations.
*
* @param {Object} settings
* @returns {Promise<any>}
* @param {number} fetchTimeout - fetch timeout in seconds. Default is 60 seconds.
* @param {number} minimumFetchInterval - minimum fetch inteval in seconds. Default is 12 hours.
* @param {Function} success - callback function to be call on successfully setting the remote config settings
* @param {Function} error - callback function which will be passed a {string} error message as an argument
*/
@Cordova()
setConfigSettings(settings: any): Promise<any> {
setConfigSettings(
fetchTimeout: number,
minimumFetchInterval: number,
success: () => void,
error: (err: string) => void
): void {
return;
}