warning: vaguely described problem follows
did the javascript interface in webviewextras stop working at some point? or perhaps it works in a different way now?
i don't know whether it's to do with android, b4a, the api level, the emulator or global warming, but my app, which for years relied on a conversation between a webview and B4A through webviewextras javascript interface no longer has that conversation. looking for guidance, i stumbled onto the forum thread dealing with webviewextras, webviewextras2, ajwebkit... i've read many pages worth of that
interesting exchange, and my head is spinning.
the app has run unmodified on nexus galaxy, nexus 4 (upgraded by google along the way to android 5.1), moto e (5.1 out of the box), and several cheap tablets running 4.x. i have not had to rebuild it since the days of B4A 4.x. the relevant library then was webviewextras 1.30.
recently i had to update a key to access a server. i'm now running B4A 5.50. i loaded the source, edited the key and rebuilt and ran it on the emulator. none of the B4A subs that are called by the webview were called. no errors in the log. i updated the webviewextras library to 1.42. same story.
so i cobbled a little test together and ran it on the emulator. the webview apparently made no calls to B4A. i put it on my moto e (which runs the old full-blown app just fine). again, nothing. since the test pretty much just reflects code which used to work but apparently no longer works, i'm not surprised that it, too, fails. in any case, i'm including it. i don't know exactly what's acceptable or useful to upload, so i'm sending the apk and a zip archive of the source alone. any help is appreciated.
-go
ps - at the risk of repetition, the javascript interface works perfectly on all my devices running the unmodified app. i can only assume b4a 5.5 is looking for something i'm not feeding it. i haven't tried re-installing a version from the 4.x family of fine ide's.
did the javascript interface in webviewextras stop working at some point? or perhaps it works in a different way now?
i don't know whether it's to do with android, b4a, the api level, the emulator or global warming, but my app, which for years relied on a conversation between a webview and B4A through webviewextras javascript interface no longer has that conversation. looking for guidance, i stumbled onto the forum thread dealing with webviewextras, webviewextras2, ajwebkit... i've read many pages worth of that
interesting exchange, and my head is spinning.
the app has run unmodified on nexus galaxy, nexus 4 (upgraded by google along the way to android 5.1), moto e (5.1 out of the box), and several cheap tablets running 4.x. i have not had to rebuild it since the days of B4A 4.x. the relevant library then was webviewextras 1.30.
recently i had to update a key to access a server. i'm now running B4A 5.50. i loaded the source, edited the key and rebuilt and ran it on the emulator. none of the B4A subs that are called by the webview were called. no errors in the log. i updated the webviewextras library to 1.42. same story.
so i cobbled a little test together and ran it on the emulator. the webview apparently made no calls to B4A. i put it on my moto e (which runs the old full-blown app just fine). again, nothing. since the test pretty much just reflects code which used to work but apparently no longer works, i'm not surprised that it, too, fails. in any case, i'm including it. i don't know exactly what's acceptable or useful to upload, so i'm sending the apk and a zip archive of the source alone. any help is appreciated.
-go
ps - at the risk of repetition, the javascript interface works perfectly on all my devices running the unmodified app. i can only assume b4a 5.5 is looking for something i'm not feeding it. i haven't tried re-installing a version from the 4.x family of fine ide's.