Hello, we have exactly the same issue as @nathanielblumer-busbud.
We developed a tip in our UIKit application, and everything it's working as expected in debug mode on physical devices and simulators. But when we distribute the app in appcenter (adhoc distribution) the tip it's never displayed.
My config is:
if #available(iOS 17.0, *), isTipKitEnabledUseCase.isEnabled {
#if DEBUG
try? Tips.resetDatastore()
#endif
try? Tips.configure([
// One tip per day
.displayFrequency(.daily)
])
}
And then we have this set of rules and options for the tip:
var rules: [Rule] {
#Rule(RankingViewController.didAccessRanking) {
// Tip will only display when the didAccessRanking event has been donated 45 or more times in the last two weeks.
// TODO: This should be 42 instead of 4 (temporal testing values)
$0.donations.donatedWithin(.weeks(2)).count >= 4
}
#Rule(ReferenceFiltersViewController.didViewRankingReferenceFilters) {
// TODO: This should be 16 instead of 1 (temporal testing values)
$0.donations.count <= 1
}
#Rule(RankingSortingTip.didViewRankingSortingTip) {
// Tip will only display when the didViewRankingSortingTip event has not been donated in the last week.
// TODO: This should be a week instead a minute (temporal testing values)
$0.donations.donatedWithin(.minutes(1)).count < 1
}
}
var options: [TipOption] = [
MaxDisplayCount(3),
IgnoresDisplayFrequency(false)
]
I check all the project configuration and build settings and can't really understand what it's going on 🥵