Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix applying first map location #3471

Merged
merged 2 commits into from
Sep 23, 2023
Merged

Conversation

maniac103
Copy link
Contributor

If the map isn't loaded yet when the first map widget is bound, the bind attempt for that widget was discarded. Fix this by making sure to apply the widget bind attempt after initially loading the map. While at it, also make sure not to load the map until after the data saver check happened to not cause data transfer before that check.

Fixes #3412

If the map isn't loaded yet when the first map widget is bound, the bind
attempt for that widget was discarded. Fix this by making sure to apply
the widget bind attempt after initially loading the map.
While at it, also make sure not to load the map until after the data
saver check happened to not cause data transfer before that check.

Fixes openhab#3412

Signed-off-by: Danny Baumann <[email protected]>
@maniac103
Copy link
Contributor Author

Untested yet, because there's no way to test the Maps SDK without a billed account :-/
@mueller-ma Could you share our maps API key with me and/or know another way to get a testing key for our app? Could one use the artifacts of the CI pipeline for testing?

@mueller-ma
Copy link
Member

The maps key is here https://github.com/openhab/openhab-android/blob/main/.github/workflows/build.yml#L38 but only usable in apps signed by the release key. Some years ago I was able to generate an API key for development in my personal Google account (not a paid account). Did you check if that's still possible?

@maniac103
Copy link
Contributor Author

maniac103 commented Sep 13, 2023

I think that was the case for me too, but it looks like this isn't possible anymore. At least the SDK guide mentions billing to be a prerequisite.
Edit: or here or here.

@maniac103
Copy link
Contributor Author

@mueller-ma While I couldn't test it myself, I'm fairly certain this will fix #3412. My suggestion would be putting this into a beta for an actual live test now, and at some point in the future think about improving the debugging setup, e.g. by sharing a signing certificate we then use when debugging the app, and adding that signing cert to the Google account?

@mueller-ma mueller-ma merged commit c0fee61 into openhab:main Sep 23, 2023
7 checks passed
@mueller-ma
Copy link
Member

Let's give it a try in the beta version: https://github.com/openhab/openhab-android/releases/tag/3.7.5-beta

@felixschndr
Copy link
Contributor

I can confirm, it works as intended 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map shows location only after a refresh
3 participants