在 let filename = "temp.mp4"
let documentsURL = URL(fileURLWithPath: NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first!)
let savePath = documents.appendingPathComponent(fileName).path
let savePathUrl = URL(fileURLWithPath: savePath)
我有
AndroidManifest
在<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data
android:host="linhtestdeeplink"
android:scheme="app"/>
</intent-filter>
</activity>
MainActivity
在AppLinkData.fetchDeferredAppLinkData(this,
new AppLinkData.CompletionHandler() {
@Override
public void onDeferredAppLinkDataFetched(final AppLinkData appLinkData) {
// Process app link data
Log.i("TAG", "Deep link receive" + appLinkData);
}
}
);
页面中,我像
我的应用收到了通知,当我点击通知时,它会启动我的应用,但Facebook
始终为appLinkData
。
我也像null
一样发送,但它也是空的
任何帮助或建议将非常感谢
我正在使用facebook sdk 4.5 linhtestdeeplink://tripId=1
答案 0 :(得分:3)
深层链接格式为<scheme>://<host>
,因此您的深层链接应如下所示:
app://linhtestdeeplink?tripId=1