Skip to content

[Android] More functional Geolocator - #2536

Merged
jeromelaban merged 16 commits into
unoplatform:masterfrom
pkar70:patch-2
Apr 4, 2022
Merged

jeromelaban merged 16 commits into
unoplatform:masterfrom
pkar70:patch-2

Conversation

@pkar70

@pkar70 pkar70 commented Jan 25, 2020 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): closes #1967, closes #5661, closes #4432

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature

What is the current behavior?

a) RequestAccessAsync() => GeolocationAccessStatus.Allowed;
b) GetPositionAsync waits very, very long for fix
c) some options / attributes are not used

What is the new behavior?

a) current behaviour is correct only on API <23 - now, some checks are done before returning status.
b) Geolocator now can use any method of getting fix, in most scenario it means getting fix in seconds
c) more attributes are set in Geolocation

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template (for bug fixes / features)
  • Unit Tests and/or UI Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Wasm UI Tests are not showing unexpected any differences. Validate PR Screenshots Compare Test Run results.
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Part of my apps SmogMeter and KrakTram, published on Google Play and Amazon.

Internal Issue (If applicable):

@gitpod-io

gitpod-io Bot commented Jan 25, 2020 •

Copy link
Copy Markdown

@CLAassistant

CLAassistant commented Jun 10, 2020 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@pkar70

pkar70 commented Aug 29, 2020

Copy link
Copy Markdown
Contributor Author

Updated with #3064 (RequestAccessAsync) and with #3891 (Geopoint).

@pkar70

pkar70 commented Aug 29, 2020

Copy link
Copy Markdown
Contributor Author

Which section in diffIgnore I should put removed method?

@pkar70

pkar70 commented Sep 22, 2020

Copy link
Copy Markdown
Contributor Author

Updated with #4061.
But as current Uno implementation diverged too much from what is was 8 months ago, I feel unable to fully integrate my changes with current version.

So, it is something like current Uno implementation of GetGeopositionAsync(), and my implementation of GetGeopositionAsync(TimeSpan maximumAge, TimeSpan timeout).
And only this second method uses ReportInterval, MovementThreshold and DesiredAccuracyInMeters.
My original implementation was GetGeopositionAsync() => GetGeopositionAsync(TimeSpan.FromHours(2), TimeSpan.FromSeconds(60)) :)

@pkar70

pkar70 commented Oct 19, 2020

Copy link
Copy Markdown
Contributor Author

Can I get any reaction for this PR?

@MartinZikmund

Copy link
Copy Markdown
Member

I will check this out later today/tomorrow thanks :-)

@pkar70

pkar70 commented Nov 13, 2020

Copy link
Copy Markdown
Contributor Author

"I will check this out later today/tomorrow thanks :-)" and? :)

@pkar70

pkar70 commented Nov 21, 2020

Copy link
Copy Markdown
Contributor Author

Three weeks ago, "I will check this out later today/tomorrow thanks :-)" - what are results of this check?

@pkar70

pkar70 commented Feb 28, 2021

Copy link
Copy Markdown
Contributor Author

MartinZikmund commented on Nov 3, 2020 "I will check this out later today/tomorrow thanks :-)". Now it is over three months later :)

@carldebilly carldebilly added platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform project/non-ui ⚙️ Categorizes an issue or PR as relevant to winrt (non-ui) labels Mar 26, 2021
@pkar70

pkar70 commented Mar 11, 2022

Copy link
Copy Markdown
Contributor Author

Seems like failed tests are not related to this PR. Can build be restarted?

@jeromelaban

Copy link
Copy Markdown
Member

I've tested this PR again using the build from the CI. Is it expected that the sample for Attach StatusChanged is not doing anything? (same for Attach PositionChanged)

@pkar70

pkar70 commented Mar 16, 2022

Copy link
Copy Markdown
Contributor Author

One of build failure is from Windows.Devices.Lamp test :)
So, can build be restarted?

@jeromelaban

Copy link
Copy Markdown
Member

There's no need, parts of the samples are not working and another build won't fix this.

@MartinZikmund

Copy link
Copy Markdown
Member

@jeromelaban Know about this one, I have a fix in progress, soon will push.

@pkar70

pkar70 commented Mar 21, 2022

Copy link
Copy Markdown
Contributor Author

Can we (MartinZikmund and I) expect reviewing by requested persons anytime soon?

@pkar70

pkar70 commented Mar 23, 2022

Copy link
Copy Markdown
Contributor Author

MartinZikmund can you correct your delegation methods? :)
(see errors in CI build)

@jeromelaban

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@pkar70

pkar70 commented Apr 4, 2022

Copy link
Copy Markdown
Contributor Author

Can this PR be reviewed?

@jeromelaban jeromelaban left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm that the Geolocator features for the samples are working properly, and that StatusChanged and PositionChanged are also updating properly.

Thanks for your patience and many updates!

@jeromelaban
jeromelaban merged commit 2121d94 into unoplatform:master Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform/android 🤖 Categorizes an issue or PR as relevant to the Android platform project/non-ui ⚙️ Categorizes an issue or PR as relevant to winrt (non-ui)

Projects

None yet

5 participants