[jira] [Commented] (CB-5196) BB10 invoke() plugin is shadowded by cordova.js

2013-11-04 Thread Bryan Higgins (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13812863#comment-13812863
 ] 

Bryan Higgins commented on CB-5196:
---

[~csantana] I've already removed window.webworks here:

https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=blobdiff;f=lib/blackberry10/platform.js;h=c4504090f2b6ecce60e0f015436b7178453c0793;hp=96f9a661197a882b33999037c2f87ef89e4052de;hb=6568e94c736cae2262784ae35d11013e480e0da8;hpb=9bbf2b75e4d18ca8044c54d43796372f55658918

 BB10 invoke() plugin is shadowded by cordova.js
 ---

 Key: CB-5196
 URL: https://issues.apache.org/jira/browse/CB-5196
 Project: Apache Cordova
  Issue Type: Bug
  Components: BlackBerry
Affects Versions: 3.1.0
 Environment: Blackberry 10
Reporter: Mike Billau
Assignee: Carlos Santana
 Attachments: bbInvoke.html


 Our users need to invoke blackberry.invoke.invoke().  As per WebWorks doc, to 
 call any BB API, webworks.js needs to be included in the html file. 
 The problem is that there does not seem to be a way to call invoke():
 1. Create a simple BB10 app using the attached HTML file,
 2. Add feature to the config.xml: feature id=blackberry.invoke 
 name=blackberry.invoke value=blackberry.invoke/
 3. Run the app. Press the button; the browser window doesn't open.
 4. Edit the HTML file and place the cordova.js script before webworks.js 
 script
 5. Run the app again, and there is a popup saying: Error intializing 
 cordova:undefined. After dismissing the alert, you can press the button and 
 the browser opens just fine.
 Analysis:
 Internally blackberry.invoke.invoke() ('invoke' plugin) calls 
 *window.webworks.event.isOn()* in blackberry.invoke/client.js. This is where 
 the problem is: *window.webworks* is defined in both cordova.js and 
 webworks.js.The one in cordova.js doesn't have 'event' function whereas it is 
 available in window.webworks of webworks.js. Hence when webworks.js is loaded 
 after cordova.js, it works fine and not if it is reversed.
 Even though it works when we put webworks.js first we need to squash the 
 alert() and make sure cordova initializes correctly.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (CB-5196) BB10 invoke() plugin is shadowded by cordova.js

2013-10-25 Thread Mike Billau (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13805334#comment-13805334
 ] 

Mike Billau commented on CB-5196:
-

Hmmm so all of the WebWorks API's were folded into the Blackberry plugins 
listed in the repo above? 

If the WebWorks SDK is not compatible with Cordova 3.X, does that mean the only 
way to access the WebWorks API is to install these plugins?

Is this documented anywhere? I was looking on edge but can't find anything 
talking about installing these new plugins in order to continue to use 
functionality that was just there from the WebWorks SDK. I can help with this 
documentation if needed...We could probably create a new guide like  Using 
WebWorks APIs (blackberry.invoke) and link to this guide in the Blackberry 
Platform Guide [1] and BB10 Command Line Tools [2]? 

[1]http://cordova.apache.org/docs/en/edge/guide_platforms_blackberry10_index.md.html#BlackBerry%2010%20Platform%20Guide
[2]http://cordova.apache.org/docs/en/edge/guide_platforms_blackberry10_tools.md.html#BlackBerry%2010%20Command-line%20Tools

 BB10 invoke() plugin is shadowded by cordova.js
 ---

 Key: CB-5196
 URL: https://issues.apache.org/jira/browse/CB-5196
 Project: Apache Cordova
  Issue Type: Bug
  Components: BlackBerry
Affects Versions: 3.1.0
 Environment: Blackberry 10
Reporter: Mike Billau
 Attachments: bbInvoke.html


 Our users need to invoke blackberry.invoke.invoke().  As per WebWorks doc, to 
 call any BB API, webworks.js needs to be included in the html file. 
 The problem is that there does not seem to be a way to call invoke():
 1. Create a simple BB10 app using the attached HTML file,
 2. Add feature to the config.xml: feature id=blackberry.invoke 
 name=blackberry.invoke value=blackberry.invoke/
 3. Run the app. Press the button; the browser window doesn't open.
 4. Edit the HTML file and place the cordova.js script before webworks.js 
 script
 5. Run the app again, and there is a popup saying: Error intializing 
 cordova:undefined. After dismissing the alert, you can press the button and 
 the browser opens just fine.
 Analysis:
 Internally blackberry.invoke.invoke() ('invoke' plugin) calls 
 *window.webworks.event.isOn()* in blackberry.invoke/client.js. This is where 
 the problem is: *window.webworks* is defined in both cordova.js and 
 webworks.js.The one in cordova.js doesn't have 'event' function whereas it is 
 available in window.webworks of webworks.js. Hence when webworks.js is loaded 
 after cordova.js, it works fine and not if it is reversed.
 Even though it works when we put webworks.js first we need to squash the 
 alert() and make sure cordova initializes correctly.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (CB-5196) BB10 invoke() plugin is shadowded by cordova.js

2013-10-25 Thread Bryan Higgins (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13805375#comment-13805375
 ] 

Bryan Higgins commented on CB-5196:
---

Yep, that would be great. 

I've written up a post which should hit the bb developer blog soon. It has 
links to all of the relevant API docs and would be a good source to base the 
cordova docs on.

 BB10 invoke() plugin is shadowded by cordova.js
 ---

 Key: CB-5196
 URL: https://issues.apache.org/jira/browse/CB-5196
 Project: Apache Cordova
  Issue Type: Bug
  Components: BlackBerry
Affects Versions: 3.1.0
 Environment: Blackberry 10
Reporter: Mike Billau
 Attachments: bbInvoke.html


 Our users need to invoke blackberry.invoke.invoke().  As per WebWorks doc, to 
 call any BB API, webworks.js needs to be included in the html file. 
 The problem is that there does not seem to be a way to call invoke():
 1. Create a simple BB10 app using the attached HTML file,
 2. Add feature to the config.xml: feature id=blackberry.invoke 
 name=blackberry.invoke value=blackberry.invoke/
 3. Run the app. Press the button; the browser window doesn't open.
 4. Edit the HTML file and place the cordova.js script before webworks.js 
 script
 5. Run the app again, and there is a popup saying: Error intializing 
 cordova:undefined. After dismissing the alert, you can press the button and 
 the browser opens just fine.
 Analysis:
 Internally blackberry.invoke.invoke() ('invoke' plugin) calls 
 *window.webworks.event.isOn()* in blackberry.invoke/client.js. This is where 
 the problem is: *window.webworks* is defined in both cordova.js and 
 webworks.js.The one in cordova.js doesn't have 'event' function whereas it is 
 available in window.webworks of webworks.js. Hence when webworks.js is loaded 
 after cordova.js, it works fine and not if it is reversed.
 Even though it works when we put webworks.js first we need to squash the 
 alert() and make sure cordova initializes correctly.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (CB-5196) BB10 invoke() plugin is shadowded by cordova.js

2013-10-24 Thread Jeffrey Heifetz (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13804577#comment-13804577
 ] 

Jeffrey Heifetz commented on CB-5196:
-

Use the cordova 3.0 compatible plugin - 
http://plugins.cordova.io/#/com.blackberry.invoke

 BB10 invoke() plugin is shadowded by cordova.js
 ---

 Key: CB-5196
 URL: https://issues.apache.org/jira/browse/CB-5196
 Project: Apache Cordova
  Issue Type: Bug
  Components: BlackBerry
Affects Versions: 3.1.0
 Environment: Blackberry 10
Reporter: Mike Billau
 Attachments: bbInvoke.html


 Our users need to invoke blackberry.invoke.invoke().  As per WebWorks doc, to 
 call any BB API, webworks.js needs to be included in the html file. 
 The problem is that there does not seem to be a way to call invoke():
 1. Create a simple BB10 app using the attached HTML file,
 2. Add feature to the config.xml: feature id=blackberry.invoke 
 name=blackberry.invoke value=blackberry.invoke/
 3. Run the app. Press the button; the browser window doesn't open.
 4. Edit the HTML file and place the cordova.js script before webworks.js 
 script
 5. Run the app again, and there is a popup saying: Error intializing 
 cordova:undefined. After dismissing the alert, you can press the button and 
 the browser opens just fine.
 Analysis:
 Internally blackberry.invoke.invoke() ('invoke' plugin) calls 
 *window.webworks.event.isOn()* in blackberry.invoke/client.js. This is where 
 the problem is: *window.webworks* is defined in both cordova.js and 
 webworks.js.The one in cordova.js doesn't have 'event' function whereas it is 
 available in window.webworks of webworks.js. Hence when webworks.js is loaded 
 after cordova.js, it works fine and not if it is reversed.
 Even though it works when we put webworks.js first we need to squash the 
 alert() and make sure cordova initializes correctly.



--
This message was sent by Atlassian JIRA
(v6.1#6144)