Re: Determining if "you're in cordova"

2012-11-30 Thread Bryce Curtis
I think the answer depends upon when the app checks to see if it is running in cordova webview. If it is loading a remote url with remote cordova.js, then the native side will become available well before cordova.js finished loading. So, I would either check for device.cordova or register for dev

[jira] [Commented] (CB-1475) Allow Cleaver to use as a wwwFolderName an absolute path (eg. ~/Library)

2012-11-30 Thread Shazron Abdullah (JIRA)
[ https://issues.apache.org/jira/browse/CB-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507809#comment-13507809 ] Shazron Abdullah commented on CB-1475: -- Commit for above: https://git-wip-us.apache.org

[jira] [Commented] (CB-1044) [iOS] Camera getPicture, with identical cameraOptions, but get different result when run on retina display and non-retina display

2012-11-30 Thread Shazron Abdullah (JIRA)
[ https://issues.apache.org/jira/browse/CB-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507805#comment-13507805 ] Shazron Abdullah commented on CB-1044: -- Need to test on actual devices: (1) Retina iPhon

[jira] [Resolved] (CB-1674) watchPosition example in PG docs eventually times out

2012-11-30 Thread Shazron Abdullah (JIRA)
[ https://issues.apache.org/jira/browse/CB-1674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah resolved CB-1674. -- Resolution: Not A Problem > watchPosition example in PG docs eventually times out > --

[jira] [Commented] (CB-1674) watchPosition example in PG docs eventually times out

2012-11-30 Thread Shazron Abdullah (JIRA)
[ https://issues.apache.org/jira/browse/CB-1674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507804#comment-13507804 ] Shazron Abdullah commented on CB-1674: -- Not sure if this is a bug. A timeout can occur f

Re: Determining if "you're in cordova"

2012-11-30 Thread Gord Tanner
+1 This isn't a platform issue but rather a developer issue Sent from my iPhone On 2012-11-30, at 7:11 PM, Jesse wrote: > Presumably the developer knows the url of their own server, so > wouldn't it be easier to just test for that in window.location? > > On Fri, Nov 30, 2012 at 4:07 PM, Jesse

[jira] [Commented] (CB-1406) HTTP-Get via XHR in Web Workers always return status 0 under iOS 6 (Beta 4)

2012-11-30 Thread Shazron Abdullah (JIRA)
[ https://issues.apache.org/jira/browse/CB-1406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507798#comment-13507798 ] Shazron Abdullah commented on CB-1406: -- I am unsure how to proceed with this -- I tried

Re: [iOS] Cordova.plist to config.xml - deprecation

2012-11-30 Thread Shazron
I think having the conversion script makes sense (and you've already implemented it, thanks Andrew). Supporting both can cause confusion. So what is the consensus if any here. On Thu, Nov 29, 2012 at 10:40 AM, Andrew Grieve wrote: > Copying from the JIRA issue to this thread: > > I think su

Re: Determining if "you're in cordova"

2012-11-30 Thread Jesse
Presumably the developer knows the url of their own server, so wouldn't it be easier to just test for that in window.location? On Fri, Nov 30, 2012 at 4:07 PM, Jesse wrote: > So the bigger question then is how to handle the differences ... > > On Fri, Nov 30, 2012 at 4:04 PM, Filip Maj wrote: >>

[jira] [Commented] (CB-1958) Post-loading splash screen is not centered properly on 3.5inch iOS

2012-11-30 Thread Shazron Abdullah (JIRA)
[ https://issues.apache.org/jira/browse/CB-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507778#comment-13507778 ] Shazron Abdullah commented on CB-1958: -- I tested with 2.2.0 and the latest code using a

Re: Determining if "you're in cordova"

2012-11-30 Thread Jesse
So the bigger question then is how to handle the differences ... On Fri, Nov 30, 2012 at 4:04 PM, Filip Maj wrote: > It is to run a single codebase (or as close to it as possible minus the > differences in cordova.js) across web and cordova apps. > > On 11/30/12 4:02 PM, "Jesse" wrote: > >>Can w

Re: Determining if "you're in cordova"

2012-11-30 Thread Filip Maj
It is to run a single codebase (or as close to it as possible minus the differences in cordova.js) across web and cordova apps. On 11/30/12 4:02 PM, "Jesse" wrote: >Can we back up and discuss the goal? > >Is it to use the same code on the server + inside an app ( that is >packaged for multiple p

Re: Determining if "you're in cordova"

2012-11-30 Thread Filip Maj
Yeh this makes more sense.. Delegate "iswebview" to each platform implementation. BTW Android is file:// as well On 11/30/12 3:56 PM, "Shazron" wrote: >Its yucky and may break in a future platform version, but since each >platform requires its own cordova.js -- then each platform could define >

Re: Determining if "you're in cordova"

2012-11-30 Thread Jesse
Can we back up and discuss the goal? Is it to use the same code on the server + inside an app ( that is packaged for multiple platforms ) ? OR Is it to load an app on multiple devices all served by the same server? On Fri, Nov 30, 2012 at 3:56 PM, Shazron wrote: > Its yucky and may break in a

Re: Determining if "you're in cordova"

2012-11-30 Thread Shazron
Its yucky and may break in a future platform version, but since each platform requires its own cordova.js -- then each platform could define its own cordova.isWebView? wp7 is x-wmapp iOS is file:// BB is http://localhost Android is ? On Fri, Nov 30, 2012 at 3:49 PM, Jesse wrote: > WP7 app is l

Re: Determining if "you're in cordova"

2012-11-30 Thread Jesse
WP7 app is loaded from x-wmapp1:/ WP8 app is loaded from x-wmapp0:/ So file:// will not work There are probably numerous other approches ... deviceready will/should never fire, but that is difficult to test for, because it could just be taking a real long time. I see many issues with this thoug

Re: Determining if "you're in cordova"

2012-11-30 Thread Patrick Mueller
On Fri, Nov 30, 2012 at 6:27 PM, Filip Maj wrote: > The question becomes: since both browser and native versions of the app > include cordova.js, how do we know if we're in cordova or not? > Great question. > What about during cordova.js' initialization we test the bridge (echo > plugin?). If

Re: Determining if "you're in cordova"

2012-11-30 Thread Shazron
document.location starts with http://localhost OR starts with file:// then? ;) In any case, any js variable that we could set can be overridden of course. On Fri, Nov 30, 2012 at 3:38 PM, Filip Maj wrote: > I think in BB WEbWorks you get http://localhost/somethingsoemthing > > On 11/30/12 3:35

Re: Determining if "you're in cordova"

2012-11-30 Thread Gord Tanner
My gut told me _nativeReady but I don't think that is cross platform. I think we should work harder at making Cordova.js be a noop when in a standard browser which shouldn't be to hard. Sent from my iPhone On 2012-11-30, at 6:38 PM, Filip Maj wrote: > I think in BB WEbWorks you get http://loc

Re: Determining if "you're in cordova"

2012-11-30 Thread Filip Maj
I think in BB WEbWorks you get http://localhost/somethingsoemthing On 11/30/12 3:35 PM, "Shazron" wrote: >"how do we know if we're in cordova or not?" --> document.location starts >with file:// ?

Re: Determining if "you're in cordova"

2012-11-30 Thread Shazron
"how do we know if we're in cordova or not?" --> document.location starts with file:// ?

Determining if "you're in cordova"

2012-11-30 Thread Filip Maj
I'm seeing this question pop up on our IRC, as well as in person after meet ups, as well as on stack overflow here and there. Scenario: I have a website, and I have a native app that uses cordova. My cordova apps simply point to the website URL to get its contents. The question becomes: since bot

[jira] [Comment Edited] (CB-1957) InAppBrowser - video/audio does not stop playing when browser is closed

2012-11-30 Thread Shazron Abdullah (JIRA)
[ https://issues.apache.org/jira/browse/CB-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507745#comment-13507745 ] Shazron Abdullah edited comment on CB-1957 at 11/30/12 11:26 PM: --

[jira] [Commented] (CB-1947) Secure whitelisted URLs not loading in Android

2012-11-30 Thread Antony Lees (JIRA)
[ https://issues.apache.org/jira/browse/CB-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507751#comment-13507751 ] Antony Lees commented on CB-1947: - I don't remember seeing much of use in the logcat but I ca

[jira] [Commented] (CB-1947) Secure whitelisted URLs not loading in Android

2012-11-30 Thread Joe Bowser (JIRA)
[ https://issues.apache.org/jira/browse/CB-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507747#comment-13507747 ] Joe Bowser commented on CB-1947: Do you have a logcat log of this? I'm not able to reproduce

[jira] [Resolved] (CB-1957) InAppBrowser - video/audio does not stop playing when browser is closed

2012-11-30 Thread Shazron Abdullah (JIRA)
[ https://issues.apache.org/jira/browse/CB-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah resolved CB-1957. -- Resolution: Fixed Fix commit - http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/7f6d6437

[jira] [Updated] (CB-1957) InAppBrowser - video/audio does not stop playing when browser is closed

2012-11-30 Thread Shazron Abdullah (JIRA)
[ https://issues.apache.org/jira/browse/CB-1957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah updated CB-1957: - Attachment: video.html Test file 'video.html' attached. Add the file your www folder then call from

[jira] [Resolved] (CB-1956) Update Android Getting Started Guide

2012-11-30 Thread Joe Bowser (JIRA)
[ https://issues.apache.org/jira/browse/CB-1956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joe Bowser resolved CB-1956. Resolution: Fixed We should always link to the docs: https://git-wip-us.apache.org/repos/asf?p=cordova-docs.g

[jira] [Resolved] (CB-1943) Update Android Upgrading Guide for 2.3.0

2012-11-30 Thread Joe Bowser (JIRA)
[ https://issues.apache.org/jira/browse/CB-1943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joe Bowser resolved CB-1943. Resolution: Fixed Assignee: Joe Bowser (was: Simon MacDonald) Since we have no assets, just updating co

[jira] [Commented] (CB-1943) Update Android Upgrading Guide for 2.3.0

2012-11-30 Thread Joe Bowser (JIRA)
[ https://issues.apache.org/jira/browse/CB-1943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507739#comment-13507739 ] Joe Bowser commented on CB-1943: https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;a

Re: tag 2.3.0rc1 this week?

2012-11-30 Thread Steven Gill
Hey Everyone, You can grab 2.3.0rc1 for cordova at http://people.apache.org/~steven/ You can grab phonegap 2.3.0rc1 at https://github.com/phonegap/phonegap/tags. The PhoneGap release has a zip folder that contains the template for windows phone 8. This isn't included with the cordova release due

Re: Test WP8 template

2012-11-30 Thread Jesse
Thanks Sergey! Your patch will be in RC2 next week. On Fri, Nov 30, 2012 at 2:42 AM, Sergey Grebnov (Akvelon) wrote: > I confirm that the template works on a real device (HTC 8X). > > I see that html files are stored in xap and not copied to isolated storage, > but cordova.js doesn't contain the

Re: WARNING: Updated BlackBerry 10 SDK

2012-11-30 Thread Tim Kim
Thanks for the heads up, Gord! On 30 November 2012 07:40, Gord Tanner wrote: > The BlackBerry 10 SDK and OS versions were updated this week, this > broke compatibility the previous SDK. Until BlackBerry 10 is released we > will have to keep on the bleeding edge to ensure device to > SDK compat

[jira] [Resolved] (CB-1494) Supports running server behind a proxy, such as Heroku Cedar

2012-11-30 Thread Patrick Mueller (JIRA)
[ https://issues.apache.org/jira/browse/CB-1494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Mueller resolved CB-1494. - Resolution: Fixed fixed in commit: https://git-wip-us.apache.org/repos/asf?p=cordova-weinre.git;a=c

[jira] [Updated] (CB-1958) Post-loading splash screen is not centered properly on 3.5inch iOS

2012-11-30 Thread Brandon Tooke (JIRA)
[ https://issues.apache.org/jira/browse/CB-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brandon Tooke updated CB-1958: -- Description: When "AutoHideSplashScreen" is set to NO, the splash screen shifts up by 10px after the init

[jira] [Updated] (CB-1958) Post-loading splash screen is not centered properly on 3.5inch iOS

2012-11-30 Thread Brandon Tooke (JIRA)
[ https://issues.apache.org/jira/browse/CB-1958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brandon Tooke updated CB-1958: -- Priority: Minor (was: Critical) > Post-loading splash screen is not centered properly on 3.5inch iOS

[jira] [Created] (CB-1958) Post-loading splash screen is not centered properly on 3.5inch iOS

2012-11-30 Thread Brandon Tooke (JIRA)
Brandon Tooke created CB-1958: - Summary: Post-loading splash screen is not centered properly on 3.5inch iOS Key: CB-1958 URL: https://issues.apache.org/jira/browse/CB-1958 Project: Apache Cordova

Re: WebNotifications plugin

2012-11-30 Thread Filip Maj
Yes and probably yes For example, the postMessage API in Android plugins is not documented. This is essentially the same thing as what we are describing for iOS plugins. We could take this moment to document both in one fell swoop. On 11/30/12 2:09 AM, "Brian LeRoux" wrote: >Would this be an ap

WARNING: Updated BlackBerry 10 SDK

2012-11-30 Thread Gord Tanner
The BlackBerry 10 SDK and OS versions were updated this week, this broke compatibility the previous SDK. Until BlackBerry 10 is released we will have to keep on the bleeding edge to ensure device to SDK compatibility. I updated cordova-blackberry to use the new SDK (also use the provided path for

Re: InAppBrowser - events

2012-11-30 Thread Simon MacDonald
IIRC that was a hold over from when I converted the ChildBrowser (Plugin) to InAppBrowser (CordovaPlugin). The browserCallbackId was the string that held what ID to call on the JS side and it has been superseded by callbackContext so it looks like it is safe to delete. Thanks for doing the events

[jira] [Resolved] (CB-1800) remove "incubator" from name of weinre archives

2012-11-30 Thread Patrick Mueller (JIRA)
[ https://issues.apache.org/jira/browse/CB-1800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Mueller resolved CB-1800. - Resolution: Fixed Fixed in git commit: https://git-wip-us.apache.org/repos/asf?p=cordova-weinre.git

[jira] [Created] (CB-1957) InAppBrowser - video/audio does not stop playing when browser is closed

2012-11-30 Thread Shazron Abdullah (JIRA)
Shazron Abdullah created CB-1957: Summary: InAppBrowser - video/audio does not stop playing when browser is closed Key: CB-1957 URL: https://issues.apache.org/jira/browse/CB-1957 Project: Apache Cordo

[jira] [Commented] (CB-1952) Document InAppBrowser events, InAppBrowser API and options

2012-11-30 Thread Shazron Abdullah (JIRA)
[ https://issues.apache.org/jira/browse/CB-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507337#comment-13507337 ] Shazron Abdullah commented on CB-1952: -- Update the Wiki page as well for the [spec|http

[jira] [Comment Edited] (CB-1952) Document InAppBrowser events, InAppBrowser API and options

2012-11-30 Thread Shazron Abdullah (JIRA)
[ https://issues.apache.org/jira/browse/CB-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13507337#comment-13507337 ] Shazron Abdullah edited comment on CB-1952 at 11/30/12 2:03 PM: ---

Re: InAppBrowser - events

2012-11-30 Thread Shazron
Tested and checked in changes for InAppBrowser events for Android. Simon -- I didn't know how the variable browserCallbackId fit in, so I commented it out for now :P On Wed, Nov 28, 2012 at 5:48 PM, Shazron wrote: > Checked in changes for InAppBrowser events for iOS. > > Example usage: > > var

[jira] [Assigned] (CB-1950) InAppBrowser - support events

2012-11-30 Thread Shazron Abdullah (JIRA)
[ https://issues.apache.org/jira/browse/CB-1950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah reassigned CB-1950: Assignee: Shazron Abdullah (was: Simon MacDonald) > InAppBrowser - support events > -

[jira] [Resolved] (CB-1950) InAppBrowser - support events

2012-11-30 Thread Shazron Abdullah (JIRA)
[ https://issues.apache.org/jira/browse/CB-1950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah resolved CB-1950. -- Resolution: Fixed Fix commit - http://git-wip-us.apache.org/repos/asf/cordova-android/commit/432a

[jira] [Created] (CB-1956) Update Android Getting Started Guide

2012-11-30 Thread Shazron Abdullah (JIRA)
Shazron Abdullah created CB-1956: Summary: Update Android Getting Started Guide Key: CB-1956 URL: https://issues.apache.org/jira/browse/CB-1956 Project: Apache Cordova Issue Type: Bug

RE: Test WP8 template

2012-11-30 Thread Sergey Grebnov (Akvelon)
I confirm that the template works on a real device (HTC 8X). I see that html files are stored in xap and not copied to isolated storage, but cordova.js doesn't contain the fix for XHRPatch - the template won't work in jQueryMobile-like cases when the files are accessed via XMLHttpRequest. You ca

Re: WebNotifications plugin

2012-11-30 Thread Brian LeRoux
Would this be an appropriate addition to the plugin dev guide or are there other events/scenarios we/re not considering? On Fri, Nov 30, 2012 at 6:57 AM, Filip Maj wrote: > I feel pretty dumb not thinking about this before.. > > O well, good thing Jesse is smrt! > > On 11/29/12 7:21 PM, "Ally Ogi