我将 .well-known/assetlinks.json 添加到我的站点,当我尝试在 android studio 应用程序链接助手中进行链接和验证时,它会显示“成功!您的应用程序与所选域相关联。” 但是当我在 android studio 中测试应用程序链接时,它说“URL 解决冲突,请链接并验证您的数字资产链接”。但是在链接和验证选项卡中它说好的!
我的应用程序 id 是正确的,我正在尝试在我的 mac 上测试 apk,sha 指纹也是正确的。
我错过了什么?
我将shareduserid添加到我的应用程序中,当尝试从google play store更新应用程序时,我得到-504错误.设备日志如下.清单文件是正确的,从Android工作室或adb安装时没有问题,但无法从市场更新.有任何想法吗?
Copying /data/data/io.crash.air/files/com.xxx.xxx_36fcadf21b0a4ef18ff35b90608b3b1c.apk to base.apk
D/PackageManager( 645): Renaming /data/app/vmdl1037256928.tmp to /data/app/com.xxx.xxx-2
I/ActivityManager( 645): Force stopping com.xxx.xxx appid=10271 user=-1: uninstall pkg
I/PackageManager( 645): Package com.xxx.xxx codePath changed from /data/app/com.xxx.xxx-1 to /data/app/com.xxx.xxx-2; Retaining data and using new
W/PackageManager( 645): Package com.xxx.xxx shared user changed from <nothing> to com.yyy.yyy; replacing with new
W/PackageManager( 645): Package couldn't be installed in /data/app/com.xxx.xxx-2
W/PackageParser( 645): Unknown element under <application>: intent-filter at /data/app/com.xxx.xxx-1/base.apk Binary XML file line #334
D/ActivityManager( 645): getTaskThumbnailLocked mainThumbnail is null, TaskRecord{2732f83e …Run Code Online (Sandbox Code Playgroud) 我正在尝试通过通用链接点击处理打开的应用程序。在 ios 13 以下,它运行良好,但对于 ios 13,它只能在后台运行应用程序。如果应用程序不在前台或后台工作,单击链接将打开未调用的应用程序继续 userActivity功能。我还尝试在场景委托 willconnnect 中获取它以进行委托。但仍然没有调用我的代码下面有什么问题?
场景代表
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let _ = (scene as? UIWindowScene) else { return }
if connectionOptions.userActivities.first != nil {
self.scene(scene, continue: userActivity!)
}
}
func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
continueUserActivity(userActivity: userActivity)
}
func continueUserActivity(userActivity : NSUserActivity){
if userActivity.activityType == NSUserActivityTypeBrowsingWeb {
let url = userActivity.webpageURL!
let dataDict:[String: String] = [AppLinkManager.appLinkExtraKey: url.absoluteString]
NotificationCenter.default.post(name: .didReceiveAppLink, object: nil, userInfo: dataDict) …Run Code Online (Sandbox Code Playgroud)