Plug-in
Use cases
Custom questions screen before results
intro by default, the plug in transitions automatically from the recording screen to the results screen once the measurement is completed however, you may want to incorporate additional content after the measurement process but before displaying the plug in's built in results screen, such as an extra page with questions this guide will show you how to integrate such additional content into the user flow seamlessly and display the results you desire prerequisites make sure you've gone through the following documentation request plug in url docid\ odjxifncpcgwmttwd6j1c embed plug in docid\ vywpzgyzobqqswusjqy 4 steps the steps to accomplish this are described below, accompanied by a figure referring to the steps 1\ display your app's welcome screen 2 request the plug in url (see request plug in url docid\ odjxifncpcgwmttwd6j1c ) and embed it in your app where desired (see embed plug in docid\ vywpzgyzobqqswusjqy 4 ) important please request us to disable the built in results screen of the plug in this means that after the measurement is completed, the plug in will not go to the results screen immediately instead, it will remain on the recording screen, giving you the opportunity to switch to your own screen, such as a questionnaire 3\ to determine when the measurement is completed and when to switch from the recording screen to your own screen, listen for the results event refer to our message events docid\ nhmyw3igywbv wbatholb documentation for more information about these events it's important to note that you might also receive a userfinished event in case the user ends the health check without successfully completing it, for example, because the conditions for taking a health check aren't good enough we recommend you take this into account when designing your own screen, as requesting the results screen in this case will not be necessary and you will need an alternative flow 4\ show your custom screen 5\ show the results when the user has completed the necessary steps on your custom screen you have two options to display the results in case you'd like to use the plug in's built in results screen, this involves calling our api to fetch the results url and embedding it in your app this is explained in the request results screen url docid\ ljch0hjenc dtech0poye page in case you'd like to design a custom results screen, make sure to listen for the results event, buckets and bucket summaries from the plug in, which are sent when by the plug in when the measurement completes these events contain all the results from the health scan in json format