You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your app is only available outside the U.S. App Store, you will need to set countryCode to the two-letter country code of the store you want to search
// If you don't need to show skip button, you can set the 'canSkip: false'
39
-
// PreferredStyle default is '.alert', Can be select between '.alert' and '.actionSheet'
40
-
}else{
41
-
// no new version.
28
+
- Can select version check type => `.immediately`, `.daily`, `.weekly`
29
+
30
+
31
+
```swift
32
+
AppStoreManager.shared.checkNewVersion(.immediately) { (isAvailable) in
33
+
if isAvailable {
34
+
// New Version Available.
35
+
} else {
36
+
// No New Version.
37
+
}
42
38
}
43
-
}
44
-
```
39
+
```
40
+
41
+
- If your app is only available outside the U.S. App Store, you will need to set**countryCode** to the two-letter country code of the store you want to search.
42
+
> See http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 for a list of ISO Country Codes.
43
+
44
+
```swift
45
+
AppStoreManager.shared.checkNewVersion(.immediately, countryCode: "th") { (isAvailable) in
46
+
if isAvailable {
47
+
// New Version Available.
48
+
} else {
49
+
// No New Version.
50
+
}
51
+
}
52
+
```
53
+
54
+
55
+
Check New Version Available and Show Alert:
56
+
57
+
- Can select version check type => `.immediately`, `.daily`, `.weekly`
58
+
- If you don't need to show skip button, you can set the **canSkip:** `false`
- If your app is only available outside the U.S. App Store, you will need to set**countryCode** to the two-letter country code of the store you want to search.
65
+
> See http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 for a list of ISO Country Codes.
- If your app is only available outside the U.S. App Store, you will need to set**countryCode** to the two-letter country code of the store you want to search.
79
+
> See http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 for a list of ISO Country Codes.
- If your app is only available outside the U.S. App Store, you will need to set**countryCode** to the two-letter country code of the store you want to search.
95
+
> See http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 for a list of ISO Country Codes.
0 commit comments