개발/swift

How to get app store version in swift?

lemonade 2020. 10. 13. 23:02
반응형

How to get app store version in swift?

 

 

You can get app store version by using get request.

 

I use alamofire but you can do whatever you want like urlsession.

 

You can show popup if user need update!

 

 

You can show app store page to user by below code.

 

 

Noted that you should replace YourAppId with your app id.

You can find it in App Store connect.

 

And it's not working in simulator.

 

Be sure to test in real device!

반응형
그리드형

'개발 > swift' 카테고리의 다른 글

Swift How to get range of substring?  (0) 2020.10.17
Swift frame vs bounds  (0) 2020.10.14
Swift Random Generator  (0) 2020.10.13
Alamofire 5 Network Interceptor  (0) 2020.10.12
Multiple link UILabel in swift  (0) 2020.10.11