Skip to content

Commit

Permalink
fix(firebase-analytics): add sync option for all methods
Browse files Browse the repository at this point in the history
  • Loading branch information
musou1500 committed Mar 14, 2018
1 parent f11be24 commit 42fd1f2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/@ionic-native/plugins/firebase-analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class FirebaseAnalytics extends IonicNativePlugin {
* @param params {any} Some param to configure something
* @return {Promise<any>} Returns a promise
*/
@Cordova()
@Cordova({ sync: true })
logEvent(name: string, params: any): Promise<any> { return; }

/**
Expand All @@ -52,7 +52,7 @@ export class FirebaseAnalytics extends IonicNativePlugin {
* @param id {string} The user ID
* @return {Promise<any>} Returns a promise
*/
@Cordova()
@Cordova({ sync: true })
setUserId(id: string): Promise<any> { return; }

/**
Expand All @@ -62,15 +62,15 @@ export class FirebaseAnalytics extends IonicNativePlugin {
* @param value {string} The property value
* @return {Promise<any>} Returns a promise
*/
@Cordova()
@Cordova({ sync: true })
setUserProperty(name: string, value: string): Promise<any> { return; }

/**
* Sets whether analytics collection is enabled for this app on this device.
* @param enabled {boolean}
* @return {Promise<any>} Returns a promise
*/
@Cordova()
@Cordova({ sync: true })
setEnabled(enabled: boolean): Promise<any> { return; }

/**
Expand All @@ -79,7 +79,7 @@ export class FirebaseAnalytics extends IonicNativePlugin {
* @param name {string} The name of the screen
* @return {Promise<any>} Returns a promise
*/
@Cordova()
@Cordova({ sync: true })
setCurrentScreen(name: string): Promise<any> { return; }

}

0 comments on commit 42fd1f2

Please sign in to comment.