我目前正在尝试在Android应用中设置深层链接。
首先,如果他们正确设置元标记,我想好像应用程序是从任何网站(意味着主机 - “example1.com”或“example2.com”)运行的?
这是我的测试网页的样子:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Jakubs Applinks Test</title>
<meta name="description" content="Jakubs Applinks Test">
<meta name="author" content="Jakub Holovsky">
<meta property="al:android:url" content="jakubsapp://login" />
<meta property="al:android:package" content="com.jakubsapp.android" />
<meta property="al:android:class" content="com.jakubsapp.android.LoginActivity" />
<meta property="al:android:app_name" content="Jakubs App" />
<meta property="al:web:url" content="[some fallback url]" />
</head>
<body>
</body>
</html>
在我的Android应用中,我在我的活动中添加了以下Intent过滤器:
[Activity (Label = "LoginActivity")]
[IntentFilter(new [] {Android.Content.Intent.ActionView },
DataScheme="*",
DataHost="jakubsapp",
DataPath="login",
Categories=new [] { Android.Content.Intent.CategoryDefault })]
public class LoginActivity : BaseActivity
{
我从手机启动测试网站但没有任何反应/启动。我确信肯定有问题,但我不确定是什么。
请注意,我已将Rivets组件添加到我的Xamarin Android应用程序中。
答案 0 :(得分:0)
网址错误,应该是这样的:
Error: Could not parse for environment production: Syntax error at 'NO'; expected '}' at /etc/puppet/manifests/no.pp:3 on node pk-docker-01.cs1cloud.internal
Error: Could not parse for environment production: Syntax error at 'NO'; expected '}' at /etc/puppet/manifests/no.pp:3 on node pk-docker-01.cs1cloud.internal
file { '/var/NO/tmp' : ensure => directory,
}
Resource[User] {"NO":
ensure => present ,
password => 'admin@123',
}
group { no :
ensure => present ,
}
as mentioned in Android documentation:
return render (request, 'base.html', {'obj': obj})