[Android back button] Android back button not working and got ControllerDisposedException error

Forge Component
(7)
Published on 28 Feb by Miguel Vicente
7 votes
Published on 28 Feb by Miguel Vicente

Hi,

I am using AndroidBackButton_Press block in some screen on the app.

Sometimes, the back button is not working and this error show in the error log:

ControllerDisposedException: Invalid call of the 'ActionHandler_OnBackKeyDown' client action of the XXX since the latter is not currently active. This is likely due to a platform's client action being used as an event handler or in a setTimeout function. Consider removing this call by using the 'On Destroy' event of the screen/block or moving your logic to a global client action. 

After that, the back button will not be working in all screen on the app.

How can i resolve this error?

I had the same issue and I believe it was caused from having the AndroidBackButton_Press widget twice on a screen, one in the screen itself and another on a web block used in the screen.