c# - Tizen xamarin webview 应用程序在启动时关闭

标签 c# xamarin tizen

我正在尝试为 tizen TV 创建一个 C# Xamarin 项目 每当我包含 WebView 控件时,应用程序都会启动然后立即关闭。

我已经设置了互联网的权限(以及更多),但同样的事情总是发生。然而,当我尝试使用其他控件(标签、按钮)时,它工作得很好。 ``

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Xamarin.Forms;

namespace CrossTemplate
{
    public class App : Application
    {
        public App()
        {
            var html = new HtmlWebViewSource
            {
                Html = "your html here"
            };
            // The root page of your application
            MainPage = new ContentPage
            {
                Content = new StackLayout
                {
                    Orientation = StackOrientation.Horizontal,
                    Children = {
                        new WebView
                        {
                            WidthRequest = 100,
                            HeightRequest = 100,
                            /* Source = "http://google.com/" Url or pure html same thing happens*/
                            Source = html
                        }
                    }
                }
            };
        }

        protected override void OnStart()
        {
            // Handle when your app starts
        }

        protected override void OnSleep()
        {
            // Handle when your app sleeps
        }

        protected override void OnResume()
        {
            // Handle when your app resumes
        }
    }
}

最佳答案

检查this page .

您无法在 Tizen TV 平台上使用 WebView 。

关于c# - Tizen xamarin webview 应用程序在启动时关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54588705/

相关文章:

c# - Visual Studio 不会在不重新启动的情况下在项目和 NuGet 引用之间切换

c# - 在 <% %> 中使用带有 If 语句的 Container.DataItem

c# - 为什么线程 2 不可用?

xamarin - 单击 "Cell control"like 按钮时获取 ListView 项目

debugging - 在为 Tizen Gear watch 开发时查看回溯信息?

javascript - Tizen Web 应用程序可穿戴设备 :TypeMismatchError

c# - 如何让 Swagger 显示从 API 返回的对象示例?

c# - 从具有许多关系的 Xamarin.Android 上的 Parse.com 检索查询

c# - 以下方法或属性之间的调用不明确 : `Android. App.AlertDialog.Builder.SetPositiveButton

javascript - Websocket发送消息延迟