Skip to content

Motion permission for products (iOS asks again after every launch) #961

Closed

Description

@gp0p3

Description

Tilt functionality is required for the Scarcity SPA (stash.paseo) and is a prerequisite for release. Each collectible uses phone movement to display depth; without motion access, the artwork remains flat.

On iOS, users are prompted for motion access after every app launch when an NFT artwork is displayed. Since the iOS host does not respond to WebKit’s motion request, WebKit issues its own prompt each time.

This issue cannot be resolved at the product level. WebKit stores the permission response only in memory, so it is lost when the app closes. The host must manage this decision, but TrUAPI does not currently offer a motion permission that products can request.

Requirements

  • Users should make a one-time decision per product. 'Allow always' and 'Deny' persist across app launches until changed by the user. 'Allow once' remains active until the app closes.
  • The host should respond to WebKit according to the user’s selection to prevent WebKit from displaying its own prompt.
  • TrUAPI device permissions should include Motion, with standard options: Allow once, Allow always, and Deny. Products will request motion access through the host, and the user’s choice will be managed with other permissions.
  • Hosts that provide motion access by default, such as Android and desktop platforms, should grant permission automatically.
  • The same TrUAPI request should work on every host that supports motion, so a product needs no platform-specific code.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions