Uploaded image for project: 'Social Justice Repair Kit'
  1. Social Justice Repair Kit
  2. SJRK-110

Make hasMobileCamera detection more robust

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Storytelling Tool UI
    • Labels:
      None

      Description

      In the imageBlockEditor grade, the method to detect whether a user's device has camera capture capabilities (function sjrk.storyTelling.mobileCameraAware.hasMobileCamera) is simply checking the user agent string. This is neither reliable nor recommended, as a UAS could easily be spoofed, customized or otherwise altered. The current check also only works for UAS's that have "iphone", "ipad" or "android" in them, so it is leaving out many otherwise supported devices.

      Investigate other feature detection techniques. (modernizr?)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              gmoss Gregor Moss
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: