Bug 1910394 Comment 1 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

> User has been signed into sync for 7+ days

There are [existing triggers](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/messaging-fenix.fml.yaml#53) called `FXA_SIGNED_IN` and `FXA_NOT_SIGNED_IN` that use the `sync_auth.sign_in` metrics. This is set in [BackgroundServices.kt](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt#268)

To find out, what happens to this value if a user signs out.
> User has been signed into sync for 7+ days

There are [existing triggers](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/messaging-fenix.fml.yaml#53) called `FXA_SIGNED_IN` and `FXA_NOT_SIGNED_IN` that use the `sync_auth.sign_in` metrics. This is set in [BackgroundServices.kt](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt#268)

To find out - what happens to this value if a user signs out.
> User has been signed into sync for 7+ days

There are [existing triggers](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/messaging-fenix.fml.yaml#53) called `FXA_SIGNED_IN` and `FXA_NOT_SIGNED_IN` that use the `sync_auth.sign_in` metrics. This is set in [BackgroundServices.kt](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt#268). In this file we also use `onAuthenticated` when a user signs in to set the following preference:

``` 
context.settings().signedInFxaAccount = true
```

and`onLoggedOut` when a user logs out we set this value to false

```        
context.settings().signedInFxaAccount = false
```
> User has been signed into sync for 7+ days

There are [existing triggers](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/messaging-fenix.fml.yaml#53) called `FXA_SIGNED_IN` and `FXA_NOT_SIGNED_IN` that use the `sync_auth.sign_in` metrics. This is set in [BackgroundServices.kt](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt#268). In this file we also use `onAuthenticated` when a user signs in to set the following preference:

``` 
context.settings().signedInFxaAccount = true
```

and`onLoggedOut` when a user logs out we set this value to false

```        
context.settings().signedInFxaAccount = false
```

Therefore, using a combination of the `signedInFxaAccount` preference & the `sync_auth.sign_in` event the `User has been signed into sync for 7+ days` condition can be determined.
> User has been signed into sync for 7+ days

There are [existing triggers](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/messaging-fenix.fml.yaml#53) called `FXA_SIGNED_IN` and `FXA_NOT_SIGNED_IN` that use the `sync_auth.sign_in` metrics. This is set in [BackgroundServices.kt](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt#268). In this file we also use `onAuthenticated` when a user signs in to set the following preference:

``` 
context.settings().signedInFxaAccount = true
```

and`onLoggedOut` when a user logs out we set this value to false

```        
context.settings().signedInFxaAccount = false
```

Therefore, using a combination of the `signedInFxaAccount` preference & the `sync_auth.sign_in` event the `User has been signed into sync for 7+ days` condition can be determined.

**Update**
With `trigger-if-all` we can have an event where we count that we have seen a sign in in the last 7 and we haven't count sign out in the last 7 days
> User has been signed into sync for 7+ days

There are [existing triggers](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/messaging-fenix.fml.yaml#53) called `FXA_SIGNED_IN` and `FXA_NOT_SIGNED_IN` that use the `sync_auth.sign_in` metrics. This is set in [BackgroundServices.kt](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt#268). In this file we also use `onAuthenticated` when a user signs in to set the following preference:

``` 
context.settings().signedInFxaAccount = true
```

and`onLoggedOut` when a user logs out we set this value to false

```        
context.settings().signedInFxaAccount = false
```

Therefore, using a combination of the `signedInFxaAccount` preference & the `sync_auth.sign_in` event the `User has been signed into sync for 7+ days` condition can be determined.


**Update**
With `trigger-if-all` we can have an event where we count that we have seen a sign in in the last 7 and we haven't count sign out in the last 7 days
> User has been signed into sync for 7+ days

There are [existing triggers](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/messaging-fenix.fml.yaml#53) called `FXA_SIGNED_IN` and `FXA_NOT_SIGNED_IN` that use the `sync_auth.sign_in` metrics. This is set in [BackgroundServices.kt](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt#268). In this file we also use `onAuthenticated` when a user signs in to set the following preference:

``` 
context.settings().signedInFxaAccount = true
```

and`onLoggedOut` when a user logs out we set this value to false

```        
context.settings().signedInFxaAccount = false
```

Therefore, using a combination of the `signedInFxaAccount` preference & the `sync_auth.sign_in` event the `User has been signed into sync for 7+ days` condition can be determined.

**Update**
With `trigger-if-all` we can have an event where we count that we have seen a sign in in the last 7 and we haven't count sign out in the last 7 days
> User has been signed into sync for 7+ days

There are [existing triggers](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/messaging-fenix.fml.yaml#53) called `FXA_SIGNED_IN` and `FXA_NOT_SIGNED_IN` that use the `sync_auth.sign_in` metrics. This is set in [BackgroundServices.kt](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt#268). In this file we also use `onAuthenticated` when a user signs in to set the following preference:

``` 
context.settings().signedInFxaAccount = true
```

and`onLoggedOut` when a user logs out we set this value to false

```        
context.settings().signedInFxaAccount = false
```

Therefore, using a combination of the `signedInFxaAccount` preference & the `sync_auth.sign_in` event the `User has been signed into sync for 7+ days` condition can be determined.

**Update**
With `trigger-if-all` we can have an event where we count that we have seen a sign in in the last 7 and we haven't count sign out in the last 7 days. These events are `SyncAuth.signIn` & `SyncAuth.signOut`
> User has been signed into sync for 7+ days

There are [existing triggers](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/messaging-fenix.fml.yaml#53) called `FXA_SIGNED_IN` and `FXA_NOT_SIGNED_IN` that use the `sync_auth.sign_in` metrics. This is set in [BackgroundServices.kt](https://searchfox.org/mozilla-central/rev/dd421ae14997e3bebb9c08634633a4a3e3edeffc/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt#268). In this file we also use `onAuthenticated` when a user signs in to set the following preference:

``` 
context.settings().signedInFxaAccount = true
```

and`onLoggedOut` when a user logs out we set this value to false

```        
context.settings().signedInFxaAccount = false
```

Therefore, using a combination of the `signedInFxaAccount` preference & the `sync_auth.sign_in` event the `User has been signed into sync for 7+ days` condition can be determined.

**Update**
With `trigger-if-all` & `exclude-if-any` we can have an event where we count that we have seen a sign in in the last 7 and we haven't count sign out in the last 7 days. These events are `SyncAuth.signIn` & `SyncAuth.signOut`

Back to Bug 1910394 Comment 1