2

mobile network state 'active' is not set when connected using ipv6

Tasker mobile network state 'Active' does not apply when a connection is established using ipv6 only. When connected using ipv4 the 'active' state is properly set.

3 replies

M

Have to revise above issue. Also with ipv4 mobile network state 'active' is often not set (more often not than yes). This feature seems to have become unreliable nowadays.

Can you please export your profile's description (not xml) so I can take a look? Long-click the profile in Tasker->export description Thanks in advance

J

I'm having the same issue. But at my phone (Pixel 6), the mobile network state is always active, even when I disabled it or enabled the AirplaneMode. The "Mobile Data always active" in the Developer options is disabled.
Not sure if the Android June 2023 update or the latest Tasker version is responsible for this issue.

Profile: Set Variables@Mobile Data
        State: Mobile Network [ 2G:On 3G:On 3G - HSPA:On 4G:On 5G:On Active:Any ]
    
       
    Enter Task: Set Data Variables
    Settings: Abort Existing Task
    
    <Set to "checking" during test.>
    A1: Variable Set [
         Name: %ConnectionType
         To: checking
         Structure Output (JSON, etc): On ]
        If  [ %ConnectionType neq checking ]
    
    <Wait for connection to become ready>
    A2: Wait [
         MS: 0
         Seconds: 2
         Minutes: 0
         Hours: 0
         Days: 0 ]
    
    <Get current connection type.>
    A3: Test Net [
         Type: Connection Type
         Store Result In: %currentconnection
         Continue Task After Error:On ]
    
    <If connection type is wifi, set wifi alias location.>
    A4: If [ %currentconnection eq wifi ]
    
        <Get current SSID.>
        A5: Test Net [
             Type: Wifi SSID
             Store Result In: %ssid
             Continue Task After Error:On ]
    
        <Home>
        A6: If [ %ssid eq xxx | %ssid eq yyy | %ssid eq zzz | %ssid eq aaa ]
    
            A7: Variable Set [
                 Name: %WiFiLocation
                 To: Home ]
                If  [ %WiFiLocation neq Home ]
    
        <Unknown>
        A8: Else
            If  [ %ssid Set ]
    
            A9: Variable Set [
                 Name: %WiFiLocation
                 To: Unknown ]
                If  [ %WiFiLocation neq Unknown ]
    
        A10: End If
    
    <If connection type is not WiFi.>
    A11: Else
        If  [ %ConnectionType neq wifi ]
    
        <none>
        A12: Variable Set [
              Name: %WiFiLocation
              To: none ]
            If  [ %WiFiLocation neq none ]
    
    A13: End If
    
    <Set only when value is different then saved value to prevent re-set of same value.>
    A14: Variable Set [
          Name: %ConnectionType
          To: %currentconnection ]
        If  [ %ConnectionType neq %currentconnection ]
    
    
    
    Exit Task: Set Data Variables
    Settings: Abort Existing Task
    
    <Set to "checking" during test.>
    A1: Variable Set [
         Name: %ConnectionType
         To: checking
         Structure Output (JSON, etc): On ]
        If  [ %ConnectionType neq checking ]
    
    <Wait for connection to become ready>
    A2: Wait [
         MS: 0
         Seconds: 2
         Minutes: 0
         Hours: 0
         Days: 0 ]
    
    <Get current connection type.>
    A3: Test Net [
         Type: Connection Type
         Store Result In: %currentconnection
         Continue Task After Error:On ]
    
    <If connection type is wifi, set wifi alias as location.>
    A4: If [ %currentconnection eq wifi ]
    
        <Get current SSID.>
        A5: Test Net [
             Type: Wifi SSID
             Store Result In: %ssid
             Continue Task After Error:On ]
    
        <Home>
        A6: If [ %ssid eq xxx | %ssid eq yyy | %ssid eq zzz | %ssid eq ddd ]
    
            A7: Variable Set [
                 Name: %WiFiLocation
                 To: Home ]
                If  [ %WiFiLocation neq Home ]
    
        <Unknown>
        A8: Else
            If  [ %ssid Set ]
    
            A9: Variable Set [
                 Name: %WiFiLocation
                 To: Unknown ]
                If  [ %WiFiLocation neq Unknown ]
    
        A10: End If
    
    <If connection type is not WiFi.>
    A11: Else
        If  [ %ConnectionType neq wifi ]
    
        <none>
        A12: Variable Set [
              Name: %WiFiLocation
              To: none ]
            If  [ %WiFiLocation neq none ]
    
    A13: End If
    
    <Set only when value is different then saved value to prevent re-set of same value.>
    A14: Variable Set [
          Name: %ConnectionType
          To: %currentconnection ]
        If  [ %ConnectionType neq %currentconnection ]