<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    The initial post I did was for subsurface mobile 2.1.2 but in just a
    few hours 2.1.3(4.8.2.5) was pushed out.<br>
    This response is for 2.1.3 but the behavior in this area seems to be
    same for both 2.1.2 or 2.1.3(4.8.2.5)<br>
    <br>
    <div class="moz-cite-prefix">On 09/19/2018 01:33 AM, Joakim Bygdell
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFXGiNiuJDiv-fXvFeNtckBub_vBM9uOUtp5Y7KoDmqaotbVZw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div class="gmail_quote">
          <div dir="ltr">On Wed, 19 Sep 2018 at 03:25, Bill Perry <<a
              href="mailto:bill@billandterrie.com"
              moz-do-not-send="true">bill@billandterrie.com</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p> </p>
              <blockquote type="cite">
                <hr> </blockquote>
              Will the app remember the cloud sync setting if the app
              was installed with it enabled and the app is upgraded?<br>
              Seems like it should.<br>
            </div>
          </blockquote>
          <div>Unless you purge the current installation before
            installing the new version the setting should be remembered.</div>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p><br>
              </p>
              <p>Here is an odd and unexpected sync behavior that I'm
                seeing.<br>
              </p>
              26 dives were downloaded directly from the dive computer
              using my GS7. (using a debug version of 4.8.1 that I
              built)<br>
            </div>
          </blockquote>
          <div>Did you download the dives before or after activating
            your cloud account on the device? <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Original dive computer downloading was done last summer during some
    other testing when I was trying to get the Pelagic data cables to
    work with subsurface mobile.<br>
    Now that I think about it, these dives were originally downloaded on
    a linux desktop not the GS7 and synced to the cloud.<br>
    During that testing, these 26 dives were being download from both a
    linux desktop and a GS4 and testing was being done with and without
    cloud syncing.<br>
    Often I would remove the app to start clean with cloud sync disabled
    to force all the dives to be re-downloaded on both the desktop and
    mobile.<br>
    <br>
    However, during recent testing, with Subsurface mobile 4.8.1 I also
    downloaded them on the GS7 with cloud sync disabled.<br>
    I had to disable cloud sync to ensure that the dives would actually
    be transfered from the dive computer.<br>
    So I have done it both ways with various app installations.<br>
    <br>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:CAFXGiNiuJDiv-fXvFeNtckBub_vBM9uOUtp5Y7KoDmqaotbVZw@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p>Another 30 dives were downloaded on another device and
                synced to the cloud which where then synced to my GS7.<br>
                The app on the GS7 shows all 56 dives and when bringing
                up the app, it says "56 dives loaded from local dive
                data file".</p>
              <p>I removed the 4.8.1 APP and then installed the latest
                app version of 2.1.2 (4.8.2.0) <br>
                When it comes up only 26 dives show up - even though 56
                dives were showing up previously.</p>
            </div>
          </blockquote>
          <div>That is strange, if you fully remove the app all local
            data should be removed.</div>
          <div><br>
          </div>
          <div>When you then start the app you should be greeted with
            the landing page where you have the choise of typing in your</div>
          <div>cloud credentials or start in "No cloud mode".</div>
          <div>If you pick "No cloud mode" the divelist that loads
            should be empty.</div>
          <div>If you type in your cloud credentials on the first start
            up, it should pull everything from the cloud before the
            divelist is shown.</div>
        </div>
      </div>
    </blockquote>
    <br>
    That isn't what I'm seeing.<br>
    The GS7 (Android 8.0.0) and the GS4 (Android 4.4.4) have different
    behaviors.<br>
    GS7 remembers things between uninstall and re-install.<br>
    GS4 seems to start clean and work like you mentioned after removing
    the app and re-installing.<br>
    <br>
    On the GS7 (Android 8.0.0),  If I install the app, uninstall it and
    re-install it<br>
    I sometimes see a very brief flash of the landing/cloud credentials
    page and then it displays the dive list with the add dives icon at
    the bottom of the screen.<br>
    And the original local 26 dives are showing.<br>
    If I go to the Dive management dialog, Enable auto cloud sync is
    checked and cloud credentials are already in place.<br>
    I can click on Manual sync with cloud and the other 30 dives are
    pulled in.  It remembers the cloud account and password.<br>
    I can repeat this over and over again, installing 2.1.3, seeing 26
    dives, doing a cloud sync to get the other 30 dives, uninstalling it
    and re-installing, seeing the 26 dives,<br>
    doing a manual cloud sync to get the other 30.<br>
    So it isn't just a one time thing.<br>
    This behavior is the same on the GS4 with Android 4.4.4 and the GS7
    with Android 8.0.0<br>
    <br>
    <br>
    The 4.8.1 app I built from sources and loaded from an SD card had a
    different behavior.<br>
    4.8.1 dropped you on the screen that asks for your cloud settings.<br>
    It always came up with cloud disabled and didn't ever remember the
    previously used cloud account settings.<br>
    No dives showed up if you didn't enable cloud and all 56 would
    immediately show up after the cloud credentials were entered.<br>
    <br>
    <br>
    2.1.2(4.8.2.0) and 2.1.3(4.8.2.5) both bypass that cloud credential
    screen on the GS7 (Android 8.0.0)<br>
    (or seems to momentarily flash it) and remembers the previous cloud
    settings.<br>
    Including after manually uninstalling it and then re-installing it.<br>
    But it doesn't seem to do an initial cloud sync when first started
    and only the 26 dives show up.<br>
    A manual cloud sync pulls in the other 30.<br>
    <br>
    <br>
    <blockquote type="cite"
cite="mid:CAFXGiNiuJDiv-fXvFeNtckBub_vBM9uOUtp5Y7KoDmqaotbVZw@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p>If I go to dive management and click on Manual sync
                with cloud I get the other 30 dives.<br>
                If I exit the app and start it up again, it says "56
                dives loaded from local dive data file" and all 56 dives
                are there.<br>
                If I remove the 2.1.2(4.8.2.0) app, and re-install
                2.1.2(4.8.2.) again, when I bring up the app again it
                says "26 dives loaded from the local dive data file".</p>
            </div>
          </blockquote>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p>It appears that any dives that were synced from the
                cloud (I assume to the local data file?) are lost when
                the app is re-installed.<br>
                This seems really odd.<br>
                Is that really the intended behavior?</p>
            </div>
          </blockquote>
          <div>There is a separation between local saved dives and dives
            stored in the cloud.</div>
          <div>You can have different cloud accounts while still having
            the same local storage for the same user.</div>
        </div>
      </div>
    </blockquote>
    <br>
    So it keeps some sort of local separation internally on the device
    between dives actually download from the dive computer with the
    mobile device vs dives<br>
    synced from the cloud? <br>
    even though all the dives shows up as a single dive list after
    syncing?<br>
    <br>
    And how does it handle things when the very same dives were
    downloaded and cloud synced by multiple devices.<br>
    Say locally by a mobile device  *and* from another mobile device or
    desktop and then synced to the cloud?<br>
    <br>
    <br>
    <br>
    <br>
    --- bill<br>
  </body>
</html>