我在我的iOS應用中實現了使用HOKO的智能鏈接。如何實現使用HOKO鏈接的延遲深度鏈接?
,它工作正常,我的應用程序時,安裝不是鏈接進入應用
HOKDeeplink *deeplink = [HOKDeeplink
deeplinkWithRoute:@"ViewController/:product_id"
routeParameters:@{@"product_id": @"2"}
queryParameters:@{@"referrer": @"jax1"}
metadata:@{@"coupon": @"20"}];
[[Hoko deeplinking] generateSmartlinkForDeeplink:deeplink success:^(NSString *smartlink)
{
NSLog(@"smartLink == %@",smartlink);
//[[Social sharedInstance] shareProduct:self.product link:smartlink];
}
failure:^(NSError *error)
{
NSLog(@"Error = %@",error.description);
// Share web link instead
//[[Social sharedInstance] shareProduct:self.product link:self.product.webLink];
}];
通過使用上面的代碼,我創建的應用程序
在我的鏈接,當我輕按鏈接將我重定向到應用
[[Hoko deeplinking] mapRoute:@"ViewController/:product_id"
toTarget:^(HOKDeeplink *deeplink)
{
NSString *productId = deeplink.routeParameters[@"product_id"];
NSString *referrer = deeplink.queryParameters[@"referrer"];
NSLog(@"Product Id = %@ && Refferer = %@",productId,referrer);
// Do something when deeplink is opened
NSLog(@"HERE in app did finish launching..");
}];
通過我appDelegate
其收到的鏈接,並用做上面的代碼 你想要什麼。
但現在我要實現推遲鏈接用這個,
我讀了所有的文件,但沒有得到任何解決方案仍然 在文檔和它在GitHub的例子,我沒有得到任何解決方案。
我想要一些代碼示例來實現它。 ,因爲在文檔中解釋了更多的額外功能,但我沒有時間閱讀整個功能。
所以請幫我在這,如果有人之前
這樣做的任何解決方案將欣賞
並請告訴我另一種方式來測試延期的鏈接沒有做這活,因爲測試我有現場上傳應用程序,但現在它處於開發階段,因此在測試中必須創建更多版本的應用程序。
謝謝!