You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2013/02/28 20:43:13 UTC

[jira] [Commented] (CB-2595) Android - switching to PROMPT mode has unfriendly log message

    [ https://issues.apache.org/jira/browse/CB-2595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13589855#comment-13589855 ] 

Joe Bowser commented on CB-2595:
--------------------------------

I don't think this needs to be fixed, since this is actually a problem if this occurs. Sometimes the problem may be that our users have Android phones that run Froyo or Gingerbread.  This can also happen in Jellybean when Cordova developers are doing things like trying to restore state, and it's important that this error message be unfriendly.

Error messages shouldn't be happy and friendly, they should indicate that there's a problem. 
                
> Android - switching to PROMPT mode has unfriendly log message
> -------------------------------------------------------------
>
>                 Key: CB-2595
>                 URL: https://issues.apache.org/jira/browse/CB-2595
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: Master
>            Reporter: mike billau
>            Assignee: mike billau
>
> When a Cordova app is running on an older version of Android, it switches bridge mode back to the old PROMPT mode. When this happens it kicks out a somewhat misleading log message that makes some people nervous:
> 01-27 12:00:39.889: D/CordovaLog(12160): Falling back on PROMPT mode since _cordovaNative is missing.
> 01-27 12:00:39.889: D/CordovaLog(12160): file:///data/data/com.testapp/files/www/default/client/js/cordova.js: Line 1034 : Falling back on PROMPT mode since _cordovaNative is missing.
> 01-27 12:00:39.889: I/Web Console(12160): Falling back on PROMPT mode since _cordovaNative is missing. at file:///data/data/com.testapp/files/www/default/client/js/cordova.js:1034
> If you run a search for this error message you'll find a lot of confusion from our users. I think it'd be nice to change the message a bit to convey expectation so people stop asking questions about this. 

--
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