0

I have read some posts on S/O and also around the web. We are producing a HTML5 JS based web app that runs on the web. We are packaging it up for Google apps, and also for phonegap.

Can we package this app for windows 8? Of course, I appreciate it won't use the windows 8 features. But, will the app run none the less, as it stands. So that we can place it in the store and build out windows 8 features as we move forward.

I appreciate this is a slightly non-concise question, but I guess the real point is what is our quickest route to take our existing HTML 5, CSS, JS App and deploy it in the store and get it working on this platform.

4

3 に答える 3

4

In general, the answer is yes. The transition is not seamless, but you will be able to use a ton, if not all, of the application artifacts in Win8. A good test is if you can run it in IE10, you can run the app as a Win8 app. Again, this is a very broad brush - things you need to worry about are things like all scripts files need to be local (no CDN), changes to web and security contexts, and the fact that Win8 is a horizontal paradigm whereas most web apps are vertical. But in general, you should be able to make the move. Usual caveat - your mileage will vary.

于 2012-10-19T13:38:36.300 に答える
3

はい、お勧めしませんが、Win8用に既存のアプリをパッケージ化できます。ただし、数ビットのコードを追加する必要があります。最低限、次のように、アプリのstart/initコードをWinJSの最初のpromiseコールバックに埋め込む必要があります。

args.setPromise(WinJS.UI.processAll().then(function () {
// your init code
}

また、スタート画面用のアイコンとアプリの起動画面用の画像をいくつか作成する必要があります。

いくつかのネイティブWinJS関数を使用するようにコードを変更する必要がある、セキュリティ関連の制限など、いくつかの問題が発生する可能性があります。これはすべて、アプリの実装によって異なります。

于 2012-10-19T13:40:19.583 に答える
3

また、Webアプリをwin8に移行するためのMicrosoftのガイドラインを確認することもできます:http://msdn.microsoft.com/en-us/library/windows/apps/hh465143

于 2012-10-19T14:17:18.373 に答える