Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
Many times we need to update the application in app store (version update) but user did not get a proper information regarding the updation of application, when he/she opens the application.
so now we can give a functionality like when user open application and any updation in app store then user will get pop up message to update the application.
for this we need to follow some steps:
1: we need to find the app store application version and current application version ,
get application version:
get application version in app store:
2: Now combine this two and write a common method to check like that:
3: Now on your first view controller write this code on viewdidload()
4: if the user click on update then move to app store.
Note:
copy the url of your application in app store and write like that.
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
let data = try Data(contentsOf: url) guard let json = try JSONSerialization.jsonObject(with: data, options: [.allowFragments]) as? [String: Any] else { throw VersionError.invalidResponse } if let result = (json[“results”] as? [Any])?.first as? [String: Any], let version = result[“version”] as? String { print(“version in app store”, version,currentVersion);
return version != currentVersion }
I am using Swift 4.2
// After debugging, it is directly coming out here but why I donot Know why ? I think this is not working (let data = try Data(contentsOf: url) ) .Kindly Help me
throw VersionError.invalidResponse }
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
All communication is done through a ticket system. I appreciate the regular almost daily updates of what is being worked on, and communicating changes or updates is easy through this system. Mobikul's response timeframe is quick.
Josh Arnold
Owner, Shop ATV Escape
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.