mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
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:
parent
d607550573
commit
adb330aa63
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user