• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

A question about background activities in UT

Scheduled Pinned Locked Moved Support
8 Posts 4 Posters 809 Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 4 Offline
      4carlos
      last edited by 4carlos 5 Jun 2021, 04:38 6 May 2021, 04:36

      User in another forum was asked why Ubuntu Touch connects to Canonical and UBPorts every few minutes. The network traffic was measured with tcpdump. This behavior should be able to be observed with a fresh system without additionally installed apps and occurs when the system is idle. Is there an explanation for this? I'm interested in that too.

      Initially some ntpserver belonging to Canonical are queried and

      0.push.ubports.com.https.

      Thereafter, further calls are made periodically every few minutes:

      • cactuar.canonical.com.http
      • davybones.canonical.com.http
      • 0.push.ubports.com.5001

      I would expect UT do not open any external connections when idle. It would save the battery and the data plan. What is it good for??

      D 1 Reply Last reply 6 May 2021, 17:23 Reply Quote 0
      • T Offline
        TotalSonic
        last edited by 6 May 2021, 06:34

        From my understanding based on previous threads on this subject (that can be found with a search) the connection to Canonical is done as an initial network check and wake, typical of pretty much every mobile device out there (except it is done with less frequency than what happens with Android and iOS). There was talk of shifting this pinging to a UBports server, but would take some recoding so hasn't happened yet. Next - the traffic every few minutes to the ubports address is to the push server, so the user can receive notifications (for things like Telegram/TELEports, SMS, etc.)

        Best regards,
        Steve Berson

        1 Reply Last reply Reply Quote 0
        • D Offline
          dobey @4carlos
          last edited by 6 May 2021, 17:23

          If you have "automatic time" settings configured, then yes, it will check against NTP server occasionally.

          As for the rest, the push client does a connectivity check (which hits https://start.ubuntu.com/ currently), and maintains a connection to the UBports push server (push.ubports.com), so that when a push notification is sent, your device can receive it.

          Otherwise, as with a traditional Linux distro, you'd need to have many things running in background, and constantly connecting to many different servers, to be able to get notifications, which would definitely eat data and battery.

          U 4 2 Replies Last reply 7 May 2021, 02:24 Reply Quote 1
          • U Offline
            unrealb2 @dobey
            last edited by 7 May 2021, 02:24

            @dobey i wonder if we turn on airplane mode does this ping still occur? I know on android and ios even when you turn on airplane mode it still pings

            D 1 Reply Last reply 7 May 2021, 13:29 Reply Quote 0
            • 4 Offline
              4carlos @dobey
              last edited by 7 May 2021, 03:30

              Hmm, I am asking because my Xperia XA2 with Sailfish does not ping the world after a fresh installation and initial setup without installed apps. It's just quiet and doesn't connect to anyone while idle or in flight mode. Compared to the XA2, the N5 is surprisingly talkative.

              OK, it's what it is. I just wanted to know. Thanks for the hints.

              U 1 Reply Last reply 7 May 2021, 12:38 Reply Quote 0
              • U Offline
                unrealb2 @4carlos
                last edited by 7 May 2021, 12:38

                @4carlos interesting. Wonder how sailfish does it. How do u know if ur phone is pinging

                D 1 Reply Last reply 7 May 2021, 13:31 Reply Quote 0
                • D Offline
                  dobey @unrealb2
                  last edited by 7 May 2021, 13:29

                  @unrealb2 No, it won't, unless you re-enable some network connectivity, as airplane mode disables the radios, so nothing can make a connection to network.

                  1 Reply Last reply Reply Quote 2
                  • D Offline
                    dobey @unrealb2
                    last edited by 7 May 2021, 13:31

                    @unrealb2 I'm pretty sure Sailfish doesn't have any push notifications support. Also, I think they have integrated automatic time updates from cell tower, rather than using NTP. Some work would need to be done to integrate this in Ubuntu Touch still, though.

                    1 Reply Last reply Reply Quote 1
                    1 out of 8
                    • First post
                      1/8
                      Last post