This page lists common problems with installing the Widgets, building a search page, and redirecting search to a results page. Each entry gives the cause, the fix, and the page that covers the topic in full. If your problem isn’t listed, email support@vviinn.com with your site, what you tried, and the error you see.
Visual Search needs HTTPS to use the camera. The WebView also needs JavaScript, and the app needs camera permission.
Fix
Host the page with the widgets on an HTTPS server and load its URL in the WebView. Turn on JavaScript in unrestricted mode, and request camera permission in the app, in AndroidManifest.xml on Android and Info.plist on iOS.
results-page-url needs vviinn-widgets 2.211.0 or later, and earlier versions ignore it. A standalone vviinn-vps-button or vviinn-vps-widget also shows results in its modal unless show-results-in-modal="false" is set.
Fix
Update the Widgets to 2.211.0 or later. On standalone visual-search entry points, add show-results-in-modal="false" next to results-page-url.
A component counts as being on the results page only when the path of the current URL matches the path in results-page-url. The check ignores trailing slashes and the query string.
Fix
Set results-page-url to the path your results page actually has, with the same value on every component.
vviinn-results reads the search from the URL only when it has results-page-url itself, and only under the parameter names set in results-page-params.
Fix
Set results-page-url on vviinn-results. If you rename the URL parameters, give results-page-params the same value on every component that has results-page-url. Renaming needs vviinn-widgets 2.217.0 or later.
The query has a Query-to-URL Mapping in your Text Search campaign, and the mapping takes priority over results-page-url. Visual Search behaves the same way when the API suggests a URL for an uploaded image.
Fix
This is intended. If the query should reach your results page, remove or change its mapping in the campaign.
Your vviinnRedirect listener calls preventDefault() for every redirect and routes it internally. That includes Query-to-URL Mappings (detail.source is auto-suggest), which often point outside your search flow.
Fix
Route only the results-page redirects and let the widget follow the others: