Skip to content

Code to check if there is a new version on AppStore

License

Notifications You must be signed in to change notification settings

denis-couras/checkVersion-iOS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Check Update iOS

Code to check if there is a new version on AppStore.

This code is a version based on @anupgupta-arg's code.

Usage

You can force the update by calling

CheckUpdate.shared.showUpdate(withConfirmation: false)

Or the user can choose if he wants to update now or later by calling

CheckUpdate.shared.showUpdate(withConfirmation: true)

Important

Inside the code has a link from iTunes. There, you should pay attention and put the country where the application is available. Like this: http://itunes.apple.com/<country>/lookup?bundleId=\(identifier)

For example:

  • let url = URL(string: "http://itunes.apple.com/br/lookup?bundleId=\(identifier)") if the application is available in Brazil

Screenshots

  • By calling CheckUpdate.shared.showUpdate(withConfirmation: true)

img_2968

  • By calling CheckUpdate.shared.showUpdate(withConfirmation: false)

img_2969

About

Code to check if there is a new version on AppStore

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%