Notifier Showalert not working

20 views
Skip to first unread message

Don McCombs

unread,
Feb 16, 2019, 9:47:38 AM2/16/19
to MIT App Inventor Forum
AI2
Windows 10
Chrome
My Notifier Showalert is not working. No matter what I do it shows up as "1". Impossible for me to debug my App. See attachment.
NotifierError.png

Peter Mathijssen

unread,
Feb 16, 2019, 10:21:21 AM2/16/19
to MIT App Inventor Forum
What are you trying to do and what should the outcome be? Posting part of a blockroutine isn't enough to get help. 

Don McCombs

unread,
Feb 16, 2019, 10:25:00 AM2/16/19
to MIT App Inventor Forum
I'm simply trying to get a variable result to show on the screen for debugging purposes. Pretty simple you wouldn't you think? Even if I print a message in the Notifier it doesn't show up.

TimAI2

unread,
Feb 16, 2019, 11:12:57 AM2/16/19
to MIT App Inventor Forum
Tells me that your outer block code is not running for any of those blocks - whatever it is...

Don McCombs

unread,
Feb 16, 2019, 11:41:28 AM2/16/19
to MIT App Inventor Forum
The proper result is being displayed in the App. I just can't display individual variables using Notifier Showalert for interim components. It's like the Notifier function is not working in AI2.

Ghica

unread,
Feb 16, 2019, 11:51:08 AM2/16/19
to MIT App Inventor Forum
Last time I tried, the notifier worked fine.
So, you notifier is trying to display something at a time it is not executed. If you want more help, show more of your code or attach an .aia
By the way, for debugging purposes it is much easier and much more flexible to use DoIt (click with your right mouse button on a block you want to know the result for, usually some global variable, and choose DoIt on the popup.
(It does not work for local variables, because there value is not known outside the execution of the block they are in).
Cheers, Ghica.

Don McCombs

unread,
Feb 16, 2019, 12:15:54 PM2/16/19
to MIT App Inventor Forum
You are on to something there Ghica. Where does the result of DoIt show up? That would solve my problem for debugging if I could see the variable results. When I try this nothing happens.

Taifun

unread,
Feb 16, 2019, 2:05:04 PM2/16/19
to MIT App Inventor Forum
how to use Do it see tip 4 here https://puravidaapps.com/learn.php
Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Reply all
Reply to author
Forward
0 new messages