How to alert user of new update of iOS app
Don't worry there is no code required. I've recently updated my app and I was wondering the same thing. It should do it automatically once the new version is on the store. A small red icon will appear in the top right of the App Store app icon. ;)
Is it possible to send update notification to app users iOS
Code for App Version Comparision is:
func checkAppUpdateAvailability(onSuccess: @escaping (Bool) -> Void, onError: @escaping (Bool) -> Void) {
guard let info = Bundle.main.infoDictionary,
let curentVersion = info["CFBundleShortVersionString"] as? String,
let url = URL(string: "http://itunes.apple.com/lookup?bundleId=com.facebook.app") else {
return onError(true)
}
do {
let data = try Data(contentsOf: url)
guard let json = try JSONSerialization.jsonObject(with: data, options: [.allowFragments]) as? [String: Any] else {
return onError(true)
}
if let result = (json["results"] as? [Any])?.first as? [String: Any], let appStoreVersion = result["version"] as? String {
print("version in app store", appStoreVersion," current Version ",curentVersion);
let versionCompare = curentVersion.compare(appStoreVersion, options: .numeric)
if versionCompare == .orderedSame {
onSuccess(false)
} else if versionCompare == .orderedAscending {
onSuccess(true)
// 2.0.0 to 3.0.0 is ascending order, so ask user to update
}
}
} catch {
onError(true)
}
}
Now you can check App Update.
checkAppUpdateAvailability { (status) in
//When status == true show popup.
} onError: { (status) in
// Handle error
}
Iphone app update notification not getting from app store to My iphone
Harpy checks a user's currently installed version of your iOS app
against the version that is currently available in the App Store. If a
new version is available, an alert can be presented to the user
informing them of the newer version, and giving them the option to
update the application.
Link - https://github.com/ArtSabintsev/Harpy
Related Topics
How to Do Transforms on a Calayer
How to Integrate Nsurlconnection with Uiprogressview
"Could Not Find Any Information for Class Named Viewcontroller"
Should I Git Ignore Xcodeproject/Project.Pbxproj File
Nsattributedstring Inserting a Bullet Point
How to Create an Ibinspectable of Type Enum
"Initialize" Class Method for Classes in Swift
How to Check Where My App Is Using Idfa
Uipopovercontroller Dealloc Reached While Popover Is Still Visible
How to Make Both Header and Footer in Collection View with Swift
How to Check If iOS App Is in Background
Left-Align Image and Center Text on Uibutton
How to Add a Uitoolbar Programmatically to an iOS App
How to Animate Tab Bar Tab Switch with a Crossdissolve Slide Transition
How to Make Uiimageview Automatically Resize to the Size of the Image Loaded