Skip to content

Prompt dialog won't focus nor show keyboard on Android until manually tapping the text input. #139

@Thul999

Description

@Thul999

Bug Report

Problem

On Android, prompt dialog won't focus and show keyboard until manually tapping the text input.

What is expected to happen?

Automatically show keyboard when calling navigator.notification.prompt.

What does actually happen?

The prompt view is shown, but without any focus on the input field and without displaying the keyboard.

Information

There's a PR addressing the issue #132 , but still it doesn't focus in my tests.

Command or Code

navigator.notification.prompt(message, promptCallback, [title], [buttonLabels], [defaultText])

Environment, Platform, Device

Tested on Android devices running 7.1.1 (Moto G Play) & 9.0 (ZTE Blade V10 VIta).

Version information

  • Cordova CLI v9.0.0 ([email protected]).
  • Android v8.1.0
  • cordova-plugin-dialogs v2.0.2
  • MacOS v10.15.5

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

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