Hi,
i'm tring to make private store application like Appstore to put on it our internal applications that we developing.
now i'm facing an issue with checking if the user download spisfic app from my private store or not to let my private store check if it's not installed, make it install, and if it's installed let it open.
i tried to put in info.plist URL Schema. but the problem here when in check in my code. it's make the check on info.plist. means if the code found the name in URL Schema, it will undersood it installed. even if the user didnt install it.
So please advise me with this issue. i need to check if the appliction not installed let the app install it and if it installed let the app open it
Thanks for your highly support
Ahmad Taalab
Finaly Alhamdo lelah, i got the soultion. And i'll share it here to be referance.
in the orginal app "Appstore" in info.plist i putted LSApplicationQueriesSchemes<Array> and under it i putted uniq name like "MyApp1", "MyApp2" and so on...
and in the another app will be in this app "needed to be download from my Appstore" in info.plist also i putted 'URL Type' under it added URL Shcema and gived it one of my uniq ID "MyApp1"
and in my code i jsut added cuples of code lines
let url = "server url" let endPointURL = NSURL(string: url) let appURLScheme = "MyApp1://" guard let appURL = URL(string: appURLScheme) else { return } if UIApplication.shared.canOpenURL(appURL) { if #available(iOS 10.0, *) { UIApplication.shared.open(appURL) } else { UIApplication.shared.openURL(appURL) } } else { / print("Application is not installed") UIApplication.shared.openURL(endPointURL! as URL) }
and it's worked fine
Thanks for every one interested to my question