Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[android] Migrate Android SDK to GL JS–powered feedback form #15623

Merged
merged 6 commits into from
Sep 23, 2019

Conversation

pengdev
Copy link
Member

@pengdev pengdev commented Sep 13, 2019

Resolves #9090 by constructing the feedback url with referrer(package name), style owner, style id, access token and camera position information(Longitude, Latitude, zoom level, bearing and tilt).

There is one parameter missing since we don't currently have a SDK version API in our Android SDK, so couldn't add the sdk version info to the query parameter. I have created another ticket #15632 to keep track of it.

@pengdev pengdev added the Android Mapbox Maps SDK for Android label Sep 13, 2019
@pengdev pengdev requested a review from tobrun September 13, 2019 12:11
@pengdev pengdev self-assigned this Sep 13, 2019
@pengdev
Copy link
Member Author

pengdev commented Sep 13, 2019

During my test I also noticed that with some styles, such as traffic-night-v2 style, the feedback url is able to load the map correctly, but with other styles like streets-v11 style, the feedback map couldn't be loaded, is this something related to the map data?

@pengdev pengdev requested a review from a team September 13, 2019 12:13
@pengdev pengdev force-pushed the peng-migrate-to-gl-js-feedback-form branch from bf51a07 to 2136556 Compare September 15, 2019 08:59
@pengdev
Copy link
Member Author

pengdev commented Sep 16, 2019

According to #9078 (comment), on Android side, we will also no longer honor the URLs specified in the href attributes of the tags in the attribution field in the TileJSON.

@pengdev pengdev force-pushed the peng-migrate-to-gl-js-feedback-form branch from 2136556 to b4bba42 Compare September 16, 2019 09:21
@pengdev pengdev added the needs changelog Indicates PR needs a changelog entry prior to merging. label Sep 16, 2019
@pengdev pengdev requested a review from a team September 18, 2019 08:57
@tobrun tobrun added this to the release-ristretto milestone Sep 18, 2019
@pengdev pengdev force-pushed the peng-migrate-to-gl-js-feedback-form branch 2 times, most recently from df0ef77 to 1b1c18f Compare September 18, 2019 14:54
@pengdev pengdev force-pushed the peng-migrate-to-gl-js-feedback-form branch from 1b1c18f to 3ebbde3 Compare September 19, 2019 08:53
@pengdev
Copy link
Member Author

pengdev commented Sep 19, 2019

During my test I also noticed that with some styles, such as traffic-night-v2 style, the feedback url is able to load the map correctly, but with other styles like streets-v11 style, the feedback map couldn't be loaded, is this something related to the map data?

Created #15675 to keep track of this issue.

@pengdev pengdev merged commit 29dd824 into master Sep 23, 2019
@pengdev pengdev deleted the peng-migrate-to-gl-js-feedback-form branch September 23, 2019 11:54
langsmith pushed a commit that referenced this pull request Sep 25, 2019
* [android] Add debug info.

* [android] Generate feedback url.

* [android] Add unit test for buildMapFeedbackMapUrl.

* [android] Remove debug logging.

* [android] Add github issue link to the TODO.

* [android] Change getPackageName to application context.
langsmith pushed a commit that referenced this pull request Sep 25, 2019
…15699) to ristretto (#15714)

* [android] Migrate Android SDK to GL JS–powered feedback form (#15623)

* [android] Fix the crash when CameraPosition padding is set. (#15699)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android needs changelog Indicates PR needs a changelog entry prior to merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate Android SDK to GL JS–powered feedback form
3 participants