Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC47E11589 for ; Mon, 9 Jun 2014 20:05:36 +0000 (UTC) Received: (qmail 27255 invoked by uid 500); 9 Jun 2014 20:05:36 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 27222 invoked by uid 500); 9 Jun 2014 20:05:36 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 27211 invoked by uid 99); 9 Jun 2014 20:05:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 20:05:36 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cmarcelk@gmail.com designates 209.85.213.52 as permitted sender) Received: from [209.85.213.52] (HELO mail-yh0-f52.google.com) (209.85.213.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jun 2014 20:05:32 +0000 Received: by mail-yh0-f52.google.com with SMTP id a41so818364yho.11 for ; Mon, 09 Jun 2014 13:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=srngY9S8ekC+X/8D3V5bSsMGEUFhc03B/SYnMdbwot4=; b=F3p1UdbbYwo0pXkOqNxrfbHvMxPJZp7XwyoPiTH6WS4fHboX7kzw9h/xiTaqhyZfdq 8CTX0IdS6+d8HUgkLZVAjZ84gq9V8TaJ179cCLzulJcaTTJGPZsfJ3T4Va52dYW5KyUw xL0/pujAur8frGoK+wjwLUUs/tVzbjCwKRpRKx5eP6EqCPlbyJtU7n77gfDjd2T73L1c 0fRPf6sR5xj7vM6WF39b2syqRgfNLGlQGLjCf5UkdjQMonB2zyugR2sc4LvFhTkRLY9W xYb1Y9AKB+djFKYYmHrEWC5Z4cizZkAYn1z1gVNbGz8P736lhRjAikR7YAZdsAKbXW1J DWMg== X-Received: by 10.236.179.69 with SMTP id g45mr7181135yhm.81.1402344311263; Mon, 09 Jun 2014 13:05:11 -0700 (PDT) Received: from marcelk-macbook.raleigh.ibm.com (pokama-o.bluebird.ibm.com. [129.42.208.176]) by mx.google.com with ESMTPSA id x12sm23165084yhe.53.2014.06.09.13.05.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Jun 2014 13:05:10 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: Cordova strategy for Hosted Apps From: Marcel Kinard In-Reply-To: Date: Mon, 9 Jun 2014 16:05:09 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <0D1D2762-E63D-4ACD-9D0C-DBB063CD2885@gmail.com> References: <165a2a76328b4a79bd51e37e75efd64d@BL2PR03MB193.namprd03.prod.outlook.com> To: dev@cordova.apache.org X-Mailer: Apple Mail (2.1878.2) X-Virus-Checked: Checked by ClamAV on apache.org To elaborate a bit more on #1, I=92ve seen issues where the cordova.js = in the hosted content gets out-of-sync with the native Cordova runtime = installed on the device. Weird behavior can ensue when there are changes = across Cordova versions in the js-native interactions. One brute-force = way to deal with this would be to locally inspect the version of the = native Cordova runtime, and ask the remote server to serve up the = matching version of cordova.js. The folks writing hosted apps like this = don=92t see this design wrinkle until they are debugging weird behavior. On Jun 6, 2014, at 4:24 PM, Jesse wrote: > Hi Jeff, >=20 > 1. Currently (out of the box) you can load the start page from the = network > or the device file system. However, you need to be aware of both CORS > issues as well as App store policies which may make this approach > un-submittable [1] . You can achieve this either by setting the = src=3D''/> in your config.xml file, or by redirecting from the = index.html > that is packaged with your app. The latter approach allows you to = respond > to no-network issues, which you must do in mobile anyway. cordova.js = will > need to live with your server pages, and any plugins, and > cordova_plugins.js and all plugin files must match the versions of the > native implementation that is compiled in the app. >=20 > 2. Yes, it is a great way of testing, as you can skip the whole build, = and > just reload. If the app should function with/without the feature, then = yes, > it should detect it. >=20 > 3. Similar to what you describe in #2, for targeting browsers = generically. >=20 > [1] > 2.12 Apps that are not very useful, unique, are simply web sites = bundled as > Apps, or do not provide any lasting entertainment value may be = rejected. > = https://developer.apple.com/appstore/resources/approval/guidelines.html >=20 > Cheers, > Jesse >=20 >=20 > @purplecabbage > risingj.com >=20 >=20 > On Fri, Jun 6, 2014 at 1:02 PM, Jeff Burtoft = wrote: >=20 >> I have a tool that allows developers to take their web apps and build = them >> into hosted store apps on Windows 8.1 and Windows Phone (8 and 8.1) = called >> the Web App Template. Some of the = developers >> who are using the tool would like to see it go cross platform to = Android >> and iOS, so that the same config file could be used to build hosted = apps >> for the play store and App store just as it is on Windows. >> I love the idea of going cross platform, and when I think cross = platform, >> I think Cordova, but after looking through some of the documentation, = I'm >> not sure if it's a good fit. I'm looking for some direction on these >> questions: >>=20 >> 1. Does Cordova have "hosted apps" (where the content lives on = the >> server as opposed to being packaged with the app) in its roadmap? I >> realize you can do this today on most platforms with a redirect, but = it >> seems to be more of a work around rather than a strategy. >>=20 >> 2. Does it make sense to make Cordova device APIs available to >> hosted apps? In general these apps also must function in a browser , = so >> the features would have to be implemented in a progressive = enhancement >> model. >>=20 >> 3. I see a build for Browser< >> https://github.com/apache/cordova-browser> on the Cordova website. = What >> are the plans for this build? >>=20 >>=20 >> Can anyone help clarify some of this? >>=20 >> Thanks, >> Jeff Burtoft >> -------- >> HTML5 Evangelist \\ Web Technologies >> \\ Microsoft >> -------- >>=20 >>=20