I have created a Google Sheet to process a Sales and send mail from it. But I have found a limitation, it works only on PC and cannot be used on an android phone using the Sheets app. Is there a way to convert my code to a web app, use Sheets as my database and use the interface from my phone?
- 1If you are only looking for a way to run your emailer code in the mobile app, use Insert > Checkbox and an installable "on edit" trigger that detects that the checkbox has been clicked. See the checkboxButtons_ script for sample code.doubleunary– doubleunary2022-06-17 14:06:40 +00:00Commented Jun 17, 2022 at 14:06
2 Answers
Create a deployment of the project as a web-app. you'll probably want to use the Test Deployment for developing and you will need the doGet(e) function to get the page up and running.
function doGet(e) { var html = HtmlService.createHtmlOutputFromFile("your_HTML_file_here"); return html; } The function above creates the webpage but the rest of the code will end up in the html file that contains the web page.
To interact with google and its services you can use
google.script.run This allows the user to run google script code from an html page.
Comments
Not sure what you mean by "convert". You can publish your project as web app (for that you need doGet() function and some kind of UI) and then access it on mobile via URL.