This repository was archived by the owner on Apr 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ export class HelloWorldModel extends Observable {
377377 firebase . init ( {
378378 // storageBucket: 'gs://n-plugin-test.appspot.com',
379379 persist : true , // optional, default false
380- analyticsCollectionEnabled : true ,
380+ // analyticsCollectionEnabled: false, // default true
381381 onAuthStateChanged : data => { // optional
382382 console . log ( ( data . loggedIn ? "Logged in to firebase" : "Logged out from firebase" ) + " (init's onAuthStateChanged callback)" ) ;
383383 if ( data . loggedIn ) {
@@ -451,11 +451,11 @@ export class HelloWorldModel extends Observable {
451451 key : "add_to_cart" ,
452452 parameters : [ { // optional
453453 key : "item_id" ,
454- value : "p7654 "
454+ value : "p7655 "
455455 } ,
456456 {
457457 key : "item_name" ,
458- value : "abc "
458+ value : "abcd "
459459 } ]
460460 } ) . then (
461461 ( ) => {
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ firebase.init = arg => {
269269
270270 com . google . firebase . analytics . FirebaseAnalytics . getInstance (
271271 appModule . android . currentContext || com . tns . NativeScriptApplication . getInstance ( )
272- ) . setAnalyticsCollectionEnabled ( arg . analyticsCollectionEnabled || false ) ;
272+ ) . setAnalyticsCollectionEnabled ( arg . analyticsCollectionEnabled !== false ) ;
273273
274274 if ( typeof ( com . google . firebase . database ) !== "undefined" && typeof ( com . google . firebase . database . ServerValue ) !== "undefined" ) {
275275 firebase . ServerValue = {
Original file line number Diff line number Diff line change @@ -354,7 +354,7 @@ firebase.init = arg => {
354354 FIROptions . defaultOptions ( ) . deepLinkURLScheme = iOSUtils . getter ( NSBundle , NSBundle . mainBundle ) . bundleIdentifier ;
355355 }
356356
357- FIRAnalyticsConfiguration . sharedInstance ( ) . setAnalyticsCollectionEnabled ( arg . analyticsCollectionEnabled || false ) ;
357+ FIRAnalyticsConfiguration . sharedInstance ( ) . setAnalyticsCollectionEnabled ( arg . analyticsCollectionEnabled !== false ) ;
358358
359359 if ( ! firebase . _configured ) {
360360 firebase . _configured = true ;
You can’t perform that action at this time.
0 commit comments