I am not knowledgeable about MIT inventor nor coding in general so if you reply to me with an expert language, there are chances I will not understand at all )
Temporarilly add a label and set label text to get response content. Then you will be able to see what the response is or copy it and paste it as values on the response content=
I downloaded the version 2 on my mobile and I am able to click on the button fetch messages without getting an error (which was not the case before).
However no text messages are appearing on the Ai2 companion app nor SMS downloaded on my phone. (setting are belows for the messageList):
If you are getting "<!DOCTYPE" back as a response, then the web app is not working correctly. Ensure you have republished/deployed your web app after any changes.
If you are still getting "<!DOCTYPE" back put the response content to a label, you can then read the entire response, the error is usually near the end, identifying the line of the code that is failing.
Hello all, I have same issue. Yet my app works perfectly fine with deployment options set to 'Me' As 'Execute the app' and 'Anyone, even anonymous' under 'who has access'.
But app is being used by a couple of people. And when executing it by someone else who was not owner of script then we have issue that copies off messages are not being stored at ones phone. I've noticed that when looking at Google Sheet history status column is filled by owner of script. And only if he is sending these copies are being stored at his phones. If anybody else uses app then he is still 'virtually' setting statuses as 'sent'. It is quite painfull since it would be nice to have copy of what was sent just in case someone might tell that he 'did not receive a message' - then non-owner user dont have any proof that sms was sent. When changing execution settings to 'Anyone who use WebApp' these elements doctype errors are being thrown.
In the meantime I've came up with another idea - to set up shared google account for us all then connect it to certain google sheet and then log in all phones to that new google account. That could probably cut issues with permissions. Thing is that while it is still working and now that shared account is adding 'sent' statuses to the files. I dont have copies of messages sent saved in my phone which is also logged in to that new owner account.
Any idea why is that so? How are these messages handled? Why can't we just set up some new block to save 'copy' of message sent to phone messages list?
Your google sheet just stores data
Your web app creates access to this data from your App Inventor app
Your app inventor app will SEND the SMS message as the user set on the device, based upon the data provided by the google sheet/web app
Yes you can set up a separate google account to handle all this, but if you have your web app constructed correctly, your users should be able to use the app to build data on the google sheet and recall it as required to send an SMS, with no need to directly access the google sheet.
Well let's start from the beginning for better visibility - first of all we all have access to that sheet so everyone can pas their own data (phone numbers and text to send) as needed.
One of us who deployed this script based on tutorial linked somewhere above with settings that he (no user who uses app) is one who executes it no matter what. Then when using app we've noticed two cases of what is the result:
Case no.1 user who deployed that script sends messages. These are being sent and delivered correctly. Copies of these messags are being saved on his phone i messages app as he would send them the usual way by just typing it in via messaging app.
Case no.2 anybody else sends messages. Messages are being sent and delivered also correctly, BUT copies of messages sent are not stored in messaging app ie. there is no proof that message was sent other than status in google sheet. While it may be sufficient when one of the recipients asks you back after what was sent to him. For example let's assume that message one sent via this app is as follows:
'The code for you is 13579 Please respond with same code in reverse order for validation purposes'.
Then you get response from that number '97531'. But only his response is in messaging app. Message that was sent by you to that number is missing so you basically are unable to compare response with what was sent.
So we've been digging why is that so that only one of us (one who did deployment and is marked as one who executes script) only have message copies stored on his device while others are sending messages but without copies stored on their phones. I found out that it was connected probably with that in edit history of that sheet status updates were always set by owner's account - even when he was offline. That pushed me to think about it that only thing that is needed to be changed here is to change 'Execute the app' from 'Me' to 'anyone who use webapp'. But then those doctype errors pop up.
I've set another account and when I fetch and send messages with that account it sends messages normally but copies are still saved on my phone [ie. I don't see what was sent when checking phone]. Only change here is that status is now updated by that new account. Not sure at which point where that 'save copy or not' thing is happening.