Hi i am trying to incorporate branch app indexing into my app. I have a question regarding Branch App Indexing. The documentation shows like below,
let branchUniversalObject: BranchUniversalObject = BranchUniversalObject(canonicalIdentifier: "item/12345")
branchUniversalObject.canonicalUrl = "http://mypage.com/content/12345"
branchUniversalObject.title = "My Content Title"
branchUniversalObject.contentDescription = "My Content Description"
branchUniversalObject.imageUrl = "https://example.com/mycontent-12345.png"
branchUniversalObject.addMetadataKey("property1", value: "blue")
branchUniversalObject.addMetadataKey("property2", value: "red")
// register a view to add the item to the index
branchUniversalObject.registerView()
My questions are 1.if my content appeared in the google search results and if the user clicks on that, will he/she is going to redirect to AppStore or into the App if he/she got installed the app already ?? If not what should i do to achieve this with branch?. 2. Do i need to create a link using below method for App Indexing or above code is enough?
branchUniversalObject.getShortUrlWithLinkProperties(linkProperties, andCallback: { (optUrl: String?, error: NSError?) -> Void in
if error == nil, let url = optUrl {
print("got my Branch link to share: %@", url)
}
})
Thanks for helping.