I am encountering an error with OneSignal push notifications when navigating from push notification to the screen.Invalid call of the 'OnValueCallback' client action of the 'MainFlow.Home' 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.
Hi there,
Could you share the replication steps for this issue? Is the issue when you click on a push notification and then the app opens?Also, does it happen in Android, iOS, or both?Best regards,
Alexandre
When I click on the push notification, it redirects to the notification screen. At that time, this error sometimes occurs. This happens on both Android and iOS.
Hi @Tamilarasan Senthilkumar ,
I suspect this happens when OneSignal triggers a callback after the screen that owns that client action is no longer active.
In your case:
From OutSystems documentation and forum threads:
And that screen/block is destroyed, this results in invalid call. This is not OneSignal‑specific, but OneSignal makes it easy to hit because of delayed events.
Solution:
Move notification handling to a Global Client Action. OneSignal callbacks must not call Screen client actions directly.
This aligns with the OutSystems platform guidance.
Hope this helps.
Cheers,
Saugat