[Google Maps Mobile] Invalid call of the 'InitMap' client action

[Google Maps Mobile] Invalid call of the 'InitMap' client action

  
Forge Component
(9)
Published on 11 Oct (8 days ago) by Labs
9 votes
Published on 11 Oct (8 days ago) by Labs

Hello,

I'm getting the following errors and I have the latest version of Google Maps Mobile installed.

Do you have any advice on what I could do to fix this?

Invalid call of the 'InitMap' client action of the 'MainFlow.Verk' 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.

Invalid call of the 'CheckAndChangeAnchors' client action of the 'MainFlow.Verk' 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.

I've been there before.

It was because of setTimeout javascript function.

setTimeout calls a Client Action, and that client action call something but screen already destroyed because of it was ran after screen navigation.