Skip to content

[Android] GetGeopositionAsync(TimeSpan, TimeSpan) ignore parameters #4432

Closed

Description

@pkar70

Current behavior

GetGeopositionAsync(maxCacheTime, timeout) ignores parameters.

Expected behavior

Either method should be marked as "not implemented", or parameters should be used.

Ignoring maximumCacheAge parameter simply causes to return old geoposition (e.g. week old), but more dangerous is ignoring timeout parameter. App that expects e.g. "return in 10 second, with current position or null", can froze for minutes.

How to reproduce it (as minimally and precisely as possible)

Current code:

	public Task<Geoposition> GetGeopositionAsync(TimeSpan maximumCacheAge, TimeSpan timeout)
		=> GetGeopositionAsync();

Workaround

Cherry-picking of #2536

Environment

Nuget Package:

  • Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
  • Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
  • Uno.SourceGenerationTasks
  • Uno.UI.RemoteControl / Uno.WinUI.RemoteControl
  • Other:

Nuget Package Version(s):
3.1.6

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Skia
    • WPF
    • GTK (Linux)
    • Tizen
  • Windows
  • Build tasks
  • Solution Templates

IDE:

  • Visual Studio 2017 (version: )
  • Visual Studio 2019 (version: 16.7.2)
  • Visual Studio for Mac (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )
  • Visual Studio Code (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

Activity

  1. added
    kind/bug
    triage/untriaged
    on Oct 30, 2020
  2. added
    project/non-ui ⚙️
    and removed
    triage/untriaged
    on Nov 23, 2020
  3. added
    difficulty/tbd
    on Feb 15, 2021
  4. added
    difficulty/medium 🤔
    platform/android 🤖
    and removed
    difficulty/tbd
    on Jun 7, 2021
  5. removed their assignment
    on Jan 25, 2022
  6. assigned and unassigned on Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/medium 🤔kind/bugplatform/android 🤖project/non-ui ⚙️

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions