Thanks for the examples
In the app, when the user is editing the assign we put all the plugin's HTML inside a form. When the user submits, we get all the data from the form (using
form.elements) and that's the data that is then passed to prepareSubmissionData. The data is indexed by the name you set to the input.
So for example if you add this text input:
<ion-label position="stacked">My label</ion-label>
<ion-input type="text" name="mytext" autocorrect="off"></ion-input>
Then I think the prepareSubmissionData should receive an object containing a "mytext" entry with the value the user entered in the text input. For simple types maybe you don't need to convert the data inside prepareSubmissionData.