SJRK-110: Make hasMobileCamera detection more robust

Metadata

Source
SJRK-110
Type
Task
Priority
Major
Status
Closed
Resolution
Won't Do
Assignee
N/A
Reporter
Gregor Moss
Created
2018-05-31T15:47:38.978-0400
Updated
2019-09-12T13:42:09.128-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Storytelling Tool UI

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?)

Comments

  • Gregor Moss commented 2019-09-12T13:42:09.118-0400

    The hasMobileCamera detection has been removed from the project