Results 1 to 5 of 5

Thread: [iOS 3.0.3] [iOS 3.0.3] detectedNewAvailableMapVersion not called for 20180129 map wh

  1. #1
    Erfahrener skobbler
    Join Date
    11.02.2015
    Posts
    121

    [iOS 3.0.3] [iOS 3.0.3] detectedNewAvailableMapVersion not called for 20180129 map wh

    detectedNewAvailableMapVersion is not called when the currentMapVersion is 20170828 (even though 20180129 is available) . It IS being called when the currentMapVersion is a version before 20170828 (like 20161212 or 20170306 for example).

    So, basically, although the new map version is available, my existing users (who have the previous map version 20170828), are not getting the new map update. While new users ARE getting the update (because they do not have the previous version)
    Last edited by guidove; 07.04.2018 at 14:10.

  2. #2
    Erfahrener skobbler
    Join Date
    11.02.2015
    Posts
    121
    STEPS TO REPRODUCE IN 3.1 DEMO APP (using SKMapsDemo_3.1_StaticFramework_SimulatorSlice)

    1. In AppDelegate.m change line 59 to
      Code:
      NSLog(@"Map version file download finished.%@\n ", currentMapVersion);
      this is to log the current loaded map version
    2. In SKMaps.bundle/PreinstalledMaps/v1 add an old map version (see screenshot... I used 20161212 here, but I also tested with 20170306 with same result)
      Screen Shot 2018-04-07 at 06.29.49.jpg
    3. Build and run the demo app (IMPORTANT: Make sure the demo app is NOT already installed on the device/simulator before you build and run)
    4. On App startup you get a pop-up like in screenshot:
      Simulator Screen Shot - iPhone X - 2018-04-07 at 06.34.48.jpg
      So... detectedNewAvailableMapVersion has been called in this case and map was updated.
    5. Now, remove the preinstalled 20161212 map folder from the SKMaps.bundle folder and replace it with the 20170828 folder like in screenshot:
      Screen Shot 2018-04-07 at 06.41.55.jpg
    6. Repeat step 3, again, making sure the app is not installed on the device/simulator before building and running.
    7. The popup does NOT appear. detectedNewAvailableMapVersion has NOT been called!!!
      In the console's last line you'll find "Map version file download finished.20170828"


    For your convenience, here are the preinstalledmaps (20161212 and 20170828) in a zip file. Again... it works correct (i.e. the popup appears) if currentMapVersions is anything but 20170828

    Since the server is contacted to determine if there's a new map version available, I think this should be a very easy fix, not requiring any framework update.

    Please let me know as this is quite urgent for my existing users who are waiting for a new map update.
    Last edited by guidove; 07.04.2018 at 14:14.

  3. #3
    Erfahrener skobbler
    Join Date
    12.09.2016
    Posts
    112
    Thanks for reporting this. I'll make sure to pass it to our dev team for fixing.

    Adrian

  4. #4
    Erfahrener skobbler
    Join Date
    11.02.2015
    Posts
    121
    Same problem with the latest map update 20180416.
    I have now worked around it by adding below to the 'loadedWithMaperVersion' delegate method:

    Code:
                if let availableVersions = versioningManager.availableMapVersions as? [SKVersionInformation], let latestVersion = availableVersions.first?.version {
                    if latestVersion > currentMapVersion {
                        mapsVersioningManager(versioningManager, detectedNewAvailableMapVersion: latestVersion, currentMapVersion: currentMapVersion)
                    }
                }
    Last edited by guidove; 20.07.2018 at 07:43.

  5. #5
    Erfahrener skobbler
    Join Date
    12.09.2016
    Posts
    112
    Hi Guido,

    I have the confirmation that the issue is fixed. The cause was a missing file on the map server.
    Better late than never, I guess.

    Regards,
    Adrian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •