How do I use iOS shortcuts to send data to my app?
Hello, Tadabase Users! In this week's episode of Build It with Tim, we have something unique to share with you. Instead of teaching you how to build an app from scratch, Tim will be showcasing an app he has already built and explaining how he did it.
Tim had an idea to manage audio recordings he makes on his iPhone using a voice memo application. He wanted to make these recordings actionable and process them further by storing them in a database app, allowing him to manipulate the data freely. To achieve this, Tim used iOS shortcuts, a native feature of iPhones, along with Tadabase's custom component and the REST API.
The finished application Tim built looks different from a regular database app. It includes a search box and displays both the audio recordings and their transcripts. Tim utilized the custom component to add interactive features like a clickable dropdown for the transcript and a customized audio playback component. The backend structure of the app is simple, with fields for audio recordings, transcripts, and a date-time field to track uploads.
The main action takes place within the iOS shortcut. Tim demonstrates how to set it up, although he admits he's not an expert. The shortcut starts by receiving the audio recording and transcript files from the share sheet of the voice memo application. Then, it uses the Tadabase REST API endpoints, along with variables stored in a dictionary, to upload the files to the Tadabase app.
After running the shortcut, the audio recording and transcript are sent to the Tadabase app, creating a new record. Tim shares the link to the iOS shortcut and provides the code for the custom component's HTML, CSS, and JavaScript. He also explains the difference between using the custom component and other standard components like the table or list.
By using the custom component, Tim was able to enhance the visual presentation of the audio recordings and add interactive elements. Without it, the recordings would have been displayed as simple links. He demonstrates how to set up the custom component for a list of records from the chosen table and how to customize its functionality.
In conclusion, Tim shows how iOS shortcuts, Tadabase's custom component, and the REST API can be used together to send audio recordings and their transcripts from an iPhone to a Tadabase app. This functionality allows users to manage and process their recordings effectively. Tim shares all the necessary resources for you to try it out yourself.
That's it for this week's episode of Build It with Tim. Stay tuned for more exciting app-building tutorials and tips. Happy building!