mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-12 16:23:32 +01:00
[AltServer] Fixes installation alerts not using device name
As of iOS 16, iOS apps can no longer read the device name. This means devices registered with AltStore (not AltServer) have generic names, so we should prefer using the name of provided ALTDevice rather than the name of device returned from server to ensure it’s correct.
This commit is contained in:
@@ -167,7 +167,7 @@ extension ALTDeviceManager
|
||||
if ipaFileURL == nil
|
||||
{
|
||||
// Show alert before downloading remote .ipa.
|
||||
self.showInstallationAlert(appName: NSLocalizedString("AltStore", comment: ""), deviceName: device.name)
|
||||
self.showInstallationAlert(appName: NSLocalizedString("AltStore", comment: ""), deviceName: altDevice.name)
|
||||
}
|
||||
|
||||
self.prepare(device) { (result) in
|
||||
@@ -191,7 +191,7 @@ extension ALTDeviceManager
|
||||
if ipaFileURL != nil
|
||||
{
|
||||
// Show alert after "downloading" local .ipa.
|
||||
self.showInstallationAlert(appName: application.name, deviceName: device.name)
|
||||
self.showInstallationAlert(appName: application.name, deviceName: altDevice.name)
|
||||
}
|
||||
|
||||
appName = application.name
|
||||
|
||||
Reference in New Issue
Block a user