mariojaeger
Lost but trying
Profile
Posts: 25
Reg: Feb 14, 2014
Bad Wildungen
3,350
05/21/14 02:39 AM (10 years ago)

External Javascript in Android

Hello, my app works with external Javascripts it works fine on IOS but not on Android/eclipse what is wrong? Is there a different thing what i must do? Thank you
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
05/21/14 06:41 AM (10 years ago)
Make sure it is being called from the right location... it's best to reference it from the same directory as the HTML that uses it (BT_Docs), and in one case, I had to change the webView from the default webView to 'ChromeView', but that was an exception, rather than the rule... Check your path first. Put it in with the HTML file and try it. Cheers! -- Smug
 
mariojaeger
Lost but trying
Profile
Posts: 25
Reg: Feb 14, 2014
Bad Wildungen
3,350
like
05/21/14 06:51 AM (10 years ago)
Thanks, but the path from the Html-File is online (www..........) and the Javascript too.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/21/14 10:52 AM (10 years ago)
What plugin are you using for the webview?. I think html doc in Android BT 3.0 doesn't play nicely.
 
mariojaeger
Lost but trying
Profile
Posts: 25
Reg: Feb 14, 2014
Bad Wildungen
3,350
like
05/21/14 11:33 AM (10 years ago)
I use the Html Pro plug in its importen to me to use this.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/21/14 03:13 PM (10 years ago)
I use html pro with javascript.So it can work. Could be the url syntax?
 
mariojaeger
Lost but trying
Profile
Posts: 25
Reg: Feb 14, 2014
Bad Wildungen
3,350
like
05/21/14 09:59 PM (10 years ago)
The app and the plugin works greate with IOS. But not with android, i think i must change something in android but i do not know what. I have write to Chris, i hope he has a solution. The htmcode works also when i open it in a normal browser.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/22/14 01:10 AM (10 years ago)
I use web pages with javascript in both ios and android and generally, it works, but not always. The fact that it works with IOS means it uses some feature that is different in Android. Sometimes syntax that works in IOS doesn't work identically in Android. Web views are not full blown browsers, there are also times when code that a web view works on ios doesn't work on android. Try the custom url plugin as a test, as I know that also works with javascript on ios and android. Lastly, try using the launch native app plugin as a test in your app to launches the browser itself and passing in the URL. If that works, it's all clues to Chris if you think the problem is html pro.
 
mariojaeger
Lost but trying
Profile
Posts: 25
Reg: Feb 14, 2014
Bad Wildungen
3,350
like
05/22/14 01:30 AM (10 years ago)
Ok, it works with custom url plugin. I think its a problem with HTML-Pro. I hope Chris has a solution.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/22/14 03:23 AM (10 years ago)
Well at least that is progress. You can also log it with him as a bug here https://www.buzz-tools.com/ Cheers, Alan
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.