[jbosstools-issues] [JBoss JIRA] (JBIDE-15206) CordovaSim does not work at all
Ilya Buziuk (JIRA)
jira-events at lists.jboss.org
Tue Jul 16 13:26:26 EDT 2013
[ https://issues.jboss.org/browse/JBIDE-15206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790081#comment-12790081 ]
Ilya Buziuk commented on JBIDE-15206:
-------------------------------------
[~kpiwko], For correct work of the Ticket Monster you should define specific user-agent in the CordovaSim.
{code:title=TicketMonsterActivity.java}
public class TicketMonsterActivity extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");
}
@Override
public void init() {
super.init();
WebSettings settings = this.appView.getSettings();
settings.setUserAgentString("TicketMonster Cordova Webview Android");
}
}
{code}
settings.setUserAgentString("TicketMonster Cordova Webview Android") - this is a very important line, cause in case of another user-agent Ticket Monster App won't work. So, change user-agent in BS preferences to "TicketMonster Cordova Webview Android". I guess this will fix it :)
> CordovaSim does not work at all
> -------------------------------
>
> Key: JBIDE-15206
> URL: https://issues.jboss.org/browse/JBIDE-15206
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: browsersim
> Environment: JBDS 7.0.CR1a
> RHEL 6.4 64bit and Fedora 18 64bit
> Reporter: Karel Piwko
> Priority: Critical
>
> CordovaSim does not work at all. No warnings, no logs. Tested on TicketMonster Cordova (Cordova 2.7.0) and Hybrid Project from wizard.
> BrowserSim works just fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list