Hi, I was searching the Internet for tutorials on how to read JSON data without knowing all the possible values but I haven't found it.
Basically what I'm trying to do is using an extension called "Notification Listener" by taifun to show the most recent notification in the app, but this extension returns me a result in a JSON like this:
Fortunately that works fine for me, I just encounter a small problem when trying to replace the text string with the variable that contains the JSON in the extension, I get an error:
Bad arguments to Text
The operation Text cannot accept the arguments:,[nothing]
I found an example like yours...but for a list of notifications so that they obtain a list of titles, a list of texts and a list of packages...maybe it will be useful to you:
I just tried to do what was in that example but my result is the same that your other brute force example. Maybe it's better to try to make the error not appear, because the text I need is displayed fine but the error still appears.
If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...
which means in your case post a screenshot of your relevant blocks...
To download the aia file, upload it to App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...
Thank you.