iOS App Update Notification

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



Leave a reply



Submit