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 an app update is available, Siren checks to make sure that the version of iOS on the user's device is compatible the one that is required by the app update. For example, if a user has iOS 9 installed on their device, but the app update requires iOS 10, an alert will not be shown. This takes care of the *false positive* case regarding app updating.
/// Siren performed version check and latest version is installed
34
+
func sirenLatestVersionInstalled()
21
35
}
22
36
23
37
// MARK: - SirenDelegate Protocol Extension
@@ -33,27 +47,31 @@ public extension SirenDelegate {
33
47
}
34
48
35
49
/// Determines the type of alert to present after a successful version check has been performed.
36
-
///
37
-
/// - force: Forces user to update your app (1 button alert)
38
-
/// - option: (DEFAULT) Presents user with option to update app now or at next launch (2 button alert)
39
-
/// - skip: Presents user with option to update the app now, at next launch, or to skip this version all together (3 button alert)
40
-
/// - none: Doesn't show the alert, but instead returns a localized message for use in a custom UI within the sirenDidDetectNewVersionWithoutAlert() delegate method
41
50
publicenumSirenAlertType{
42
-
case force // Forces user to update your app (1 button alert)
43
-
case option // (DEFAULT) Presents user with option to update app now or at next launch (2 button alert)
44
-
case skip // Presents user with option to update the app now, at next launch, or to skip this version all together (3 button alert)
45
-
case none // Doesn't show the alert, but instead returns a localized message for use in a custom UI within the sirenDidDetectNewVersionWithoutAlert() delegate method
51
+
/// Forces user to update your app (1 button alert).
52
+
case force
53
+
54
+
/// (DEFAULT) Presents user with option to update app now or at next launch (2 button alert).
55
+
case option
56
+
57
+
/// Presents user with option to update the app now, at next launch, or to skip this version all together (3 button alert).
58
+
case skip
59
+
60
+
/// Doesn't show the alert, but instead returns a localized message for use in a custom UI within the sirenDidDetectNewVersionWithoutAlert() delegate method.
61
+
case none
46
62
}
47
63
48
-
/// Determines the frequency in which the the version check is performed
64
+
/// Determines the frequency in which the the version check is performed.
49
65
///
50
-
/// - immediately: Version check performed every time the app is launched.
51
-
/// - daily: Version check performed once a day.
52
-
/// - weekly: Version check performed once a week.
53
66
publicenumSirenVersionCheckType:Int{
54
-
case immediately =0 // Version check performed every time the app is launched
55
-
case daily =1 // Version check performed once a day
56
-
case weekly =7 // Version check performed once a week
67
+
/// Version check performed every time the app is launched.
68
+
case immediately =0
69
+
70
+
/// Version check performed once a day.
71
+
case daily =1
72
+
73
+
/// Version check performed once a week.
74
+
case weekly =7
57
75
}
58
76
59
77
/// Determines the available languages in which the update message and alert button titles should appear.
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
0 commit comments