Show keyboard on mobile webapp

How do I force the keyboard to show up on an Android device?

When I call

template.myTemplate.rendered = ->
    $("#textinput").focus();

it only works for some templates (which is weird).

On SO they say it has to be in a “click()” context to work.

Maybe just try firing a click event instead of focus?

template.myTemplate.rendered = ->
    this.$("#textinput").click();