Skip to content

Introducing: Webviews for Botstack #33

Open

Description

@davidmann4

@pferdefleisch @ramonh @tosh @christophrumpel @legeekette @toshe @Cryt1c @evo42

Hi,

with 9c66197 I've added webview support. Now I am thinking about common webviews users would might need.

so far I´ve added a datepicker. Feel free to brainstorm Ideas.

@tosh: you already played around with camera support in webviews?

cheers,

David

how it works: bot framework creates a link to the webview - user has a small browser which loads a rails servlet. The HTML5 site makes a post request to another servlet which handles the request like a normal message. ecample: https://github.com/davidmann4/botstack/blob/master/app/views/webview/date_picker.html.erb

security: i generate a token (HMAC(user_id, rails_random_secret)) to sign the url of the webview. The webview also has a CSRF field. https://github.com/davidmann4/botstack/blob/master/app/controllers/webview_controller.rb#L6

Activity

  1. mraaroncruz commented on Dec 25, 2016

    @mraaroncruz
    Contributor

    I'm looking forward to see how you implemented this. You might want to look into https://github.com/trailblazer/cells for this. May be overkill but this is a great use case for it.

  2. tosh commented on Dec 25, 2016

    @tosh

    I haven't (camera) but @sido378 & @allanberger might know if camera access is already supported in webviews

  3. davidmann4 commented on Dec 25, 2016

    @davidmann4
    OwnerAuthor

    if you have ideas for webviews let me know - currently on the roadmap:
    datepicker: from - to
    datepicker: single_date
    datepicker: single_date_with_time

  4. christophrumpel commented on Dec 30, 2016

    @christophrumpel

    Have to day I haven't used them before, but I will let you know when I have some ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions