Describe the bug
Any/all agents in a view stop working after navigating to another view and back again. This will also occur after app is minimised (#33), or any kind of return to a view. This fundamentally breaks agents.
Click on 'Talk to simple agent'. You should see an alert.
Click on 'Go' to navigate away. Then go back.
'Talk to simple agent' does not work.
Expected behavior
Agent working as normal after navigation.
The actual problem
Briefly debugging stuff, I see that JasonAgentService.clear() is called when leaving a view. This calls agent.loadUrl("about:blank") and the original url is never reloaded.
It might be fixable in onPageFinished by something like:
if (url.equals("about:blank")) {
view.goBack();
}
but my knowledge of android is scant and I'm not sure what is triggered when on what state changes.
Describe the bug Any/all agents in a view stop working after navigating to another view and back again. This will also occur after app is minimised (#33), or any kind of return to a view. This fundamentally breaks agents.
Example Jasonette Document URL http://rollo.dns-systems.net/files/jasonette/agent-stops-working/view1.json http://rollo.dns-systems.net/files/jasonette/agent-stops-working/view2.json http://rollo.dns-systems.net/files/jasonette/agent-stops-working/js.html
To Reproduce Steps to reproduce the behavior:
Expected behavior Agent working as normal after navigation.
The actual problem Briefly debugging stuff, I see that
JasonAgentService.clear()
is called when leaving a view. This callsagent.loadUrl("about:blank")
and the original url is never reloaded.It might be fixable in
onPageFinished
by something like:but my knowledge of android is scant and I'm not sure what is triggered when on what state changes.