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

[ios] Telemetry button in attribution UIAlertController doesn't present telemetry UIAlertController from modal view controller #8980

Closed

Description

@kmorey

Platform:

iOS

Mapbox SDK version:

3.5.4 via cocoapods

Steps to trigger behavior

  1. Add modally presented VC
  2. Add map view to modally presented VC
  3. Run app, navigate to map view
  4. Tap attribution button
  5. Tap Mapbox Telemetry button

Expected behavior

Telemetry UIAlertController displayed

Actual behavior

No change in UI (other than button highlight state). Error shown in console:

Warning: Attempt to present <UIAlertController: 0x7ff1c060e360> on <MapboxModalAttribution.ViewController: 0x7ff1c280bb40> whose view is not in the window hierarchy!

Demo Project

Thanks to @cmoulton from #8782 for the demo project that exhibits this behavior as well!

https://github.com/cmoulton/MapboxModalAttributionTest

Activity

  1. added
    iOS
    on May 12, 2017
  2. added this to the ios-v3.6.0 milestone on May 12, 2017
  3. added
    release blocker
    on May 16, 2017
  4. jmkiley commented on May 17, 2017

    @jmkiley
    Contributor

    @incanus and I took a look at this. This may be because the method to check for the topmost UIViewController (implemented in #8837) is not called on the Telemetry UIAlertController. Opened #9027 to address this issue.

  5. added a commit that references this issue on May 17, 2017
    4f90d7a
  6. jmkiley commented on May 17, 2017

    @jmkiley
    Contributor

    Addressed in #9027

  7. added a commit that references this issue on Jun 2, 2017
    2d039d3
  8. added a commit that references this issue on Jul 5, 2017
    20a5ef6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugiOSrelease blocker

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions