You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Motion permission for products (iOS asks again after every launch) #961
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.
Activity