I have implement smart link using HOKO in my iOS app.
And it works fine, when my app is installed than the link get into the app
HOKDeeplink *deeplink = [HOKDeeplink
[[Hoko deeplinking] generateSmartlinkForDeeplink:deeplink success:^(NSString *smartlink)
NSLog(@"smartLink == %@",smartlink);
//[[Social sharedInstance] shareProduct:self.product link:smartlink];
NSLog(@"Error = %@",error.description);
// Share web link instead
//[[Social sharedInstance] shareProduct:self.product link:self.product.webLink];
[[Hoko deeplinking] mapRoute:@"ViewController/:product_id"
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..");
The above code is working with live i have tested.
link are working very good and
deferred link also working.
but i still confuse in the
referrer key in
queryParameter is must or you can use any string key?
deferred link by
hokolinks is too complex to test because you have to test it with live version so you can not perfect code for navigation without testing
For that you must have to make your app live. I did not found any other way to test this.
Yes i know your link work same as simple smart link but developer must have to test that once with live app.
And if any developer are confusing and make logs and alert for testing this than he/she must have to release at least 2 new version and also wait till the app is in review by the appstore.
and document also a very big and no proper example code for this that can be easily understandable because developers are not come from any fixed territory they can be anyone so the terms they follow are different in programming so its little bit complex to understand.
other wise the above code is work fine with live I have tested it with live everything are perfect.