mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Falls back to using canOpenURL to detect AltStore/Delta/Clip installs
This commit is contained in:
@@ -66,9 +66,12 @@ extension AppManager
|
||||
}
|
||||
else
|
||||
{
|
||||
if uti == nil
|
||||
if uti == nil && !UIApplication.shared.canOpenURL(app.openAppURL)
|
||||
{
|
||||
// This UTI is not declared by any apps, which means this app has been deleted by the user.
|
||||
// We also check canOpenURL as a fallback for apps installed before we switched to using custom UTIs.
|
||||
// canOpenURL always returns NO for apps not declared in our Info.plist,
|
||||
// so it should not affect UTI-based installation checks.
|
||||
context.delete(app)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user