Skip to content

disableBackButtonFromWR ignored on Android 17 (API 37) — back button still dismisses waiting room #33

@ekareem-fl

Description

@ekareem-fl

Description

Setting QueueItEngineOptions(true) doesn't do anything on Android 17 (API 37). User can still dismiss the waiting room with back gesture or back button. Works fine on older Android versions.

Environment

  • SDK version: com.queue-it.androidsdk:library:2.2.4
  • Broken on: Android 17 (API 37)
  • Works on: Android 15 (API 35) and below
  • Device: Pixel 7

Reproduction

Happens 100% of the time on Android 17.

  1. Configure QueueItEngine with QueueItEngineOptions(true)
  2. Run the engine on Android 17
  3. Press back when the waiting room shows up (gesture or button)

Expected: Back press does nothing, waiting room stays up.

Actual: QueueActivity is dismissed. does not fire — no listener callback is invoked at all

Both predictive back gesture and a normal back press hit the bug.

Code snippet

val options = QueueItEngineOptions(true) // disableBackButtonFromWR = true

val engine = QueueITEngine(
    activity,
    customerId,
    eventId,
    layoutName,
    language,
    null,
    null,
    listener,
    options,
)

engine.run(activity)

Notes

Might be related to Android 17's predictive back changes — OnBackInvokedCallback is the new path and the legacy onBackPressed doesn't always get called anymore. SDK might still be using the old API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions