I'm doing a python web app which returns the result of python function (selecting a random item from a list). I'm using the "random.choice()" function and then "return jsonify".
Then, on the HTML template, a button calls and displays the result. It's working perfectly well on the web with a PC, but on mobile Android browser, here's what happens: It works only ONCE: it generates the "random" choice and displays it, but when I click again, it doesn't generate a new one. And it keeps displaying the first result it generated and doesn't "refresh" or "relaunch" the function, although it works on the web on PC browsers.
But...but... it also works perfectly with an iOS web browser! Every new word generates without problem. So only on Android it stucks on the first word.
Any ideas why?
Thanks a lot!