queryStringRaw( )
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
queryStringRaw() : string;
Returns
Section titled “Returns”The unmodified query string passed in a deep link.
The query string is everything after the ?
character.
Default value: ""
Components of this query string are URL encoded. To decode these components you can use the decodeURIComponent JavaScript function. In general we recommend using the queryStringParameter(…) function as it handles parsing and decoding of the querystring automatically.
Example
Section titled “Example”Assuming the deep link zappar://ZID?myname=Zap%20Bot&myfriend=Mark&myfriend=Connell
launched this experience with ZID
being the deep link of this experience we can access the query string as follows:
let decodedQueryString = decodeURIComponent(Z.device.queryStringRaw());// "myname=Zap Bot&myfriend=Mark&myfriend=Connell" is returned and would need to be manually parsed