简体   繁体   English

如何将Xamarin iOS作为渐进式Web应用程序(PWA)部署到Web

[英]How to deploy your Xamarin iOS to the web as a progressive web application (PWA)

I am new to Xamarin and I have successfully created an application in Xamarin for iOS. 我是Xamarin的新手,并且已经在Xamarin for iOS中成功创建了一个应用程序。 What I need is a way for this application to be viewed in the browser as a PWA. 我需要的是一种在浏览器中以PWA形式查看此应用程序的方法。 I figured to learn xamarin because I thought that this was a useful resource. 我决定学习xamarin,因为我认为这是有用的资源。

I have looked in to ooui but I can't successfully attach my Xamarin project to ooui. 我已经看过ooui,但无法成功将Xamarin项目附加到ooui。

At the end of this project I will have a running PWA coded in c# for iOS in the browser. 在该项目结束时,我将在浏览器中使用一个正在运行的PWA(用iOS的c#编码)编写代码。

A link to the Xamarin can be found here: https://github.com/SunRhythms/iosslidingpuzzle/tree/master/iOSSlidingPuzzle-3 可以在以下位置找到Xamarin的链接: https : //github.com/SunRhythms/iosslidingpuzzle/tree/master/iOSSlidingPuzzle-3

Welcome to Xamarin! 欢迎使用Xamarin! Your github repo is set to Private in it's setting. 您的github存储库在其设置中被设置为Private。

Gathering from your other question as well, it's clear that you are using Native Xamarin.iOS and not Xamarin.Forms. 同样从另一个问题中收集,很明显,您正在使用本机Xamarin.iOS,而不是Xamarin.Forms。 (They have several differences if you check this ) (如果您选中此选项,它们会有一些差异)

Presently, there is no way of porting your Xamarin.iOS project into a PWA that has been made public. 当前,无法将Xamarin.iOS项目移植到已公开的PWA中。 If you do convert your project manually into a Xamarin.Forms project, you could potentially use Ooui to convert Xamarin Forms into high performance WebAssembly code. 如果确实将项目手动转换为Xamarin.Forms项目,则可能使用Ooui将Xamarin Forms转换为高性能WebAssembly代码。

It seems like you have a sliding puzzle game, so it would be cool if you do end up doing it! 好像您有一个滑动益智游戏,所以如果您最终还是这样做,那就太酷了! Share it with us and the rest of the Xamarin community 与我们和Xamarin社区的其他人分享

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM