app link: Thunkable
this is just the screen i am referencing from my larger app. all variables used in the “save behaviors” button are initialized on the same screen
I am trying to save a string to a variable. When I save a string, it causes the downloaded app to crash. On restart, the variable shows the value I attempted to save which is fine. The issue is that saving causes a glitch. I am hoping someone in the community can check this code out and perhaps the app and let me know if you see anything that would cause an error.
Also I should mention, if there is no text in the text inputs, the alerts work just fine and the app doesn’t crash. They tell the user to put some text into the text box and doesn’t save anything.
The weird part is that when I use the live companion app, this behavior does not occur. Only on the downloaded app.
I am on iOS 13 using both an iPhone and iPad.
@domhnallohanlon had asked if the variables that I am saving to would have been initialized at this point and the answer is yes. They are initialized on this screen however they are referenced on a previous screen. That said, if they are empty on the previous screen, the user is sent to the ‘set up’ screen to set those variables with a text string.
this is a new issue. new to the last day or 2
This is not happening on my android emulator or the live companion app. anybody that can help me please do! this is driving me nutz! I can’t figure it out.
@tatiang per your request, sir! the initialization blocks
as an update. i took out the variables and i dont experience the same issue. i am going to try to move the initialization and setting as a generic string to a ‘splash’ screen and will update.
***Update. when i initialize blocks on a splash screen and set them as a text variable, this fixes the crashing issue. (i actually deleted the original variables and set it as 1 variable with a list of text values) and now I am applying this to the bigger app and will get back with an update after downloaded and tested
here are the blocks i tested and will be implementing in my main app