Mmastodon TechnologyMobile first seen 10 h ago, last 10 h ago, peak #4
Trusted Web Activity domain checks clash with Next.js routing
Original: A Trusted Web Activity proves it owns a domain by fetching one file from one hard-coded path. Ours is a Next.js route ha
Android's Trusted Web Activity verifies that an app owns a domain by fetching a single file from a fixed, hard-coded path. Developers running Next.js are hitting a snag when their route handler sits one path segment away from that required location, producing a 404 that anyone can confirm in a browser. Web developers are debating workarounds for the mismatch.
Why now: Developers building Android PWAs with Next.js are running into the rigid path requirement for domain verification.
Trusted Web ActivityNext.jsAndroidPWA
Evidence
- A Trusted Web Activity proves it owns a domain by fetching one file from one hard-coded path. Ours is a Next.js route handler sitting one path segment away from that, and the 404 is checkable from your browser. # nextjs # android # pwa # webdev # software # coding # development… · hackaday@www.urbanmind.net · 2
API: https://socialmediatrends-api.osmike.com/v1/trends/1215290