You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Filip Maj (Created) (JIRA)" <ji...@apache.org> on 2012/04/11 21:43:18 UTC
[jira] [Created] (CB-481) Android initialize() method calls
prompt('gap:init') to tell native to unhide webview
Android initialize() method calls prompt('gap:init') to tell native to unhide webview
-------------------------------------------------------------------------------------
Key: CB-481
URL: https://issues.apache.org/jira/browse/CB-481
Project: Apache Callback
Issue Type: Improvement
Components: Android, CordovaJS
Affects Versions: 1.6.0
Reporter: Filip Maj
Assignee: Joe Bowser
Fix For: 1.7.0
The final call in Android's cordova-js after everything is ready is to tell native to unhide the webview. This is done via a {{prompt}} call with string "gap_init" or something along those lines.
While this is fine, we already have the {{exec}} module in place to handle webview -> native communication. We should use that instead. It's kind of foolish to go one level below {{exec}} when we have the {{exec}} abstraction available and in place already.
This would also help the testing tool Ripple: Android Cordova apps being emulated in Ripple would no longer see an annoying prompt following app startup!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CB-481) Patch Android cordova.js to call exec()
instead of directly calling prompt()
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj resolved CB-481.
--------------------------
Resolution: Fixed
Fixed; [Android commit 85aa74|https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=85aa740c9864881db562bb1f1fcf672531fea8b1] and [JS commit df936f|https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-js.git;a=commit;h=df936f604266c971933d87eef0b124374d6871f5].
> Patch Android cordova.js to call exec() instead of directly calling prompt()
> ----------------------------------------------------------------------------
>
> Key: CB-481
> URL: https://issues.apache.org/jira/browse/CB-481
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, CordovaJS
> Affects Versions: 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.9.0
> Reporter: Filip Maj
> Assignee: Filip Maj
> Priority: Minor
> Fix For: 2.0.0
>
>
> The final call in Android's cordova-js after everything is ready is to tell native to unhide the webview. This is done via a {{prompt}} call with string "gap_init" or something along those lines.
> While this is fine, we already have the {{exec}} module in place to handle webview -> native communication. We should use that instead. It's kind of foolish to go one level below {{exec}} when we have the {{exec}} abstraction available and in place already.
> This would also help the testing tool Ripple: Android Cordova apps being emulated in Ripple would no longer see an annoying prompt following app startup!
> Bottom line: {{exec}} is our go-to for calling into native. Circumventing an abstraction we put into place does not make any sense, and unifies how our bridge works.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-481) Android initialize() method calls
prompt('gap:init') to tell native to unhide webview
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj updated CB-481:
-------------------------
Affects Version/s: 1.7.0
1.8.0
1.8.1
1.9.0
Fix Version/s: (was: 1.8.0)
2.0.0
> Android initialize() method calls prompt('gap:init') to tell native to unhide webview
> -------------------------------------------------------------------------------------
>
> Key: CB-481
> URL: https://issues.apache.org/jira/browse/CB-481
> Project: Apache Cordova
> Issue Type: Sub-task
> Components: Android, CordovaJS
> Affects Versions: 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.9.0
> Reporter: Filip Maj
> Assignee: Filip Maj
> Priority: Minor
> Fix For: 2.0.0
>
>
> The final call in Android's cordova-js after everything is ready is to tell native to unhide the webview. This is done via a {{prompt}} call with string "gap_init" or something along those lines.
> While this is fine, we already have the {{exec}} module in place to handle webview -> native communication. We should use that instead. It's kind of foolish to go one level below {{exec}} when we have the {{exec}} abstraction available and in place already.
> This would also help the testing tool Ripple: Android Cordova apps being emulated in Ripple would no longer see an annoying prompt following app startup!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-481) Android initialize() method calls
prompt('gap:init') to tell native to unhide webview
Posted by "Filip Maj (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj updated CB-481:
-------------------------
Priority: Minor (was: Major)
Assignee: Filip Maj (was: Joe Bowser)
> Android initialize() method calls prompt('gap:init') to tell native to unhide webview
> -------------------------------------------------------------------------------------
>
> Key: CB-481
> URL: https://issues.apache.org/jira/browse/CB-481
> Project: Apache Callback
> Issue Type: Improvement
> Components: Android, CordovaJS
> Affects Versions: 1.6.0
> Reporter: Filip Maj
> Assignee: Filip Maj
> Priority: Minor
> Fix For: 1.7.0
>
>
> The final call in Android's cordova-js after everything is ready is to tell native to unhide the webview. This is done via a {{prompt}} call with string "gap_init" or something along those lines.
> While this is fine, we already have the {{exec}} module in place to handle webview -> native communication. We should use that instead. It's kind of foolish to go one level below {{exec}} when we have the {{exec}} abstraction available and in place already.
> This would also help the testing tool Ripple: Android Cordova apps being emulated in Ripple would no longer see an annoying prompt following app startup!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-481) Android initialize() method calls
prompt('gap:init') to tell native to unhide webview
Posted by "Filip Maj (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj updated CB-481:
-------------------------
Fix Version/s: (was: 1.7.0)
1.8.0
> Android initialize() method calls prompt('gap:init') to tell native to unhide webview
> -------------------------------------------------------------------------------------
>
> Key: CB-481
> URL: https://issues.apache.org/jira/browse/CB-481
> Project: Apache Callback
> Issue Type: Sub-task
> Components: Android, CordovaJS
> Affects Versions: 1.6.0
> Reporter: Filip Maj
> Assignee: Filip Maj
> Priority: Minor
> Fix For: 1.8.0
>
>
> The final call in Android's cordova-js after everything is ready is to tell native to unhide the webview. This is done via a {{prompt}} call with string "gap_init" or something along those lines.
> While this is fine, we already have the {{exec}} module in place to handle webview -> native communication. We should use that instead. It's kind of foolish to go one level below {{exec}} when we have the {{exec}} abstraction available and in place already.
> This would also help the testing tool Ripple: Android Cordova apps being emulated in Ripple would no longer see an annoying prompt following app startup!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-481) Android initialize() method calls
prompt('gap:init') to tell native to unhide webview
Posted by "Filip Maj (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj updated CB-481:
-------------------------
Issue Type: Sub-task (was: Improvement)
Parent: CB-190
> Android initialize() method calls prompt('gap:init') to tell native to unhide webview
> -------------------------------------------------------------------------------------
>
> Key: CB-481
> URL: https://issues.apache.org/jira/browse/CB-481
> Project: Apache Callback
> Issue Type: Sub-task
> Components: Android, CordovaJS
> Affects Versions: 1.6.0
> Reporter: Filip Maj
> Assignee: Filip Maj
> Priority: Minor
> Fix For: 1.8.0
>
>
> The final call in Android's cordova-js after everything is ready is to tell native to unhide the webview. This is done via a {{prompt}} call with string "gap_init" or something along those lines.
> While this is fine, we already have the {{exec}} module in place to handle webview -> native communication. We should use that instead. It's kind of foolish to go one level below {{exec}} when we have the {{exec}} abstraction available and in place already.
> This would also help the testing tool Ripple: Android Cordova apps being emulated in Ripple would no longer see an annoying prompt following app startup!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (CB-481) Android initialize() method calls
prompt('gap:init') to tell native to unhide webview
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj reopened CB-481:
--------------------------
In 1.9 this got somehow removed...
> Android initialize() method calls prompt('gap:init') to tell native to unhide webview
> -------------------------------------------------------------------------------------
>
> Key: CB-481
> URL: https://issues.apache.org/jira/browse/CB-481
> Project: Apache Cordova
> Issue Type: Sub-task
> Components: Android, CordovaJS
> Affects Versions: 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.9.0
> Reporter: Filip Maj
> Assignee: Filip Maj
> Priority: Minor
> Fix For: 2.0.0
>
>
> The final call in Android's cordova-js after everything is ready is to tell native to unhide the webview. This is done via a {{prompt}} call with string "gap_init" or something along those lines.
> While this is fine, we already have the {{exec}} module in place to handle webview -> native communication. We should use that instead. It's kind of foolish to go one level below {{exec}} when we have the {{exec}} abstraction available and in place already.
> This would also help the testing tool Ripple: Android Cordova apps being emulated in Ripple would no longer see an annoying prompt following app startup!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-481) Patch Android cordova.js to call exec()
instead of directly calling prompt()
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj updated CB-481:
-------------------------
Description:
The final call in Android's cordova-js after everything is ready is to tell native to unhide the webview. This is done via a {{prompt}} call with string "gap_init" or something along those lines.
While this is fine, we already have the {{exec}} module in place to handle webview -> native communication. We should use that instead. It's kind of foolish to go one level below {{exec}} when we have the {{exec}} abstraction available and in place already.
This would also help the testing tool Ripple: Android Cordova apps being emulated in Ripple would no longer see an annoying prompt following app startup!
Bottom line: {{exec}} is our go-to for calling into native. Circumventing an abstraction we put into place does not make any sense, and unifies how our bridge works.
was:
The final call in Android's cordova-js after everything is ready is to tell native to unhide the webview. This is done via a {{prompt}} call with string "gap_init" or something along those lines.
While this is fine, we already have the {{exec}} module in place to handle webview -> native communication. We should use that instead. It's kind of foolish to go one level below {{exec}} when we have the {{exec}} abstraction available and in place already.
This would also help the testing tool Ripple: Android Cordova apps being emulated in Ripple would no longer see an annoying prompt following app startup!
Summary: Patch Android cordova.js to call exec() instead of directly calling prompt() (was: Android initialize() method calls prompt('gap:init') to tell native to unhide webview)
> Patch Android cordova.js to call exec() instead of directly calling prompt()
> ----------------------------------------------------------------------------
>
> Key: CB-481
> URL: https://issues.apache.org/jira/browse/CB-481
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, CordovaJS
> Affects Versions: 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.9.0
> Reporter: Filip Maj
> Assignee: Filip Maj
> Priority: Minor
> Fix For: 2.0.0
>
>
> The final call in Android's cordova-js after everything is ready is to tell native to unhide the webview. This is done via a {{prompt}} call with string "gap_init" or something along those lines.
> While this is fine, we already have the {{exec}} module in place to handle webview -> native communication. We should use that instead. It's kind of foolish to go one level below {{exec}} when we have the {{exec}} abstraction available and in place already.
> This would also help the testing tool Ripple: Android Cordova apps being emulated in Ripple would no longer see an annoying prompt following app startup!
> Bottom line: {{exec}} is our go-to for calling into native. Circumventing an abstraction we put into place does not make any sense, and unifies how our bridge works.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CB-481) Android initialize() method calls
prompt('gap:init') to tell native to unhide webview
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj resolved CB-481.
--------------------------
Resolution: Fixed
Fixed in CordovaWebView branch.
> Android initialize() method calls prompt('gap:init') to tell native to unhide webview
> -------------------------------------------------------------------------------------
>
> Key: CB-481
> URL: https://issues.apache.org/jira/browse/CB-481
> Project: Apache Cordova
> Issue Type: Sub-task
> Components: Android, CordovaJS
> Affects Versions: 1.6.0
> Reporter: Filip Maj
> Assignee: Filip Maj
> Priority: Minor
> Fix For: 1.8.0
>
>
> The final call in Android's cordova-js after everything is ready is to tell native to unhide the webview. This is done via a {{prompt}} call with string "gap_init" or something along those lines.
> While this is fine, we already have the {{exec}} module in place to handle webview -> native communication. We should use that instead. It's kind of foolish to go one level below {{exec}} when we have the {{exec}} abstraction available and in place already.
> This would also help the testing tool Ripple: Android Cordova apps being emulated in Ripple would no longer see an annoying prompt following app startup!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CB-481) Android initialize() method calls
prompt('gap:init') to tell native to unhide webview
Posted by "Filip Maj (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Filip Maj updated CB-481:
-------------------------
Issue Type: Bug (was: Sub-task)
Parent: (was: CB-190)
> Android initialize() method calls prompt('gap:init') to tell native to unhide webview
> -------------------------------------------------------------------------------------
>
> Key: CB-481
> URL: https://issues.apache.org/jira/browse/CB-481
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, CordovaJS
> Affects Versions: 1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.9.0
> Reporter: Filip Maj
> Assignee: Filip Maj
> Priority: Minor
> Fix For: 2.0.0
>
>
> The final call in Android's cordova-js after everything is ready is to tell native to unhide the webview. This is done via a {{prompt}} call with string "gap_init" or something along those lines.
> While this is fine, we already have the {{exec}} module in place to handle webview -> native communication. We should use that instead. It's kind of foolish to go one level below {{exec}} when we have the {{exec}} abstraction available and in place already.
> This would also help the testing tool Ripple: Android Cordova apps being emulated in Ripple would no longer see an annoying prompt following app startup!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira