Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwiftRater.incrementSignificantUsageCount() not triggering rating prompt #26

Open
mozltovcoktail opened this issue May 31, 2019 · 5 comments

Comments

@mozltovcoktail
Copy link

mozltovcoktail commented May 31, 2019

Hello, and thanks for the library! Everything works great in debug mode, but I can't seem to get the rating prompt to appear when using SwiftRater.incrementSignificantUsageCount(). I've used it to try to trigger a rating prompt after the third time a uses a tap gesture in my interface, but no prompt is appearing while testing. Any ideas why?

    SwiftRater.daysUntilPrompt = 3
    SwiftRater.usesUntilPrompt = 3
    SwiftRater.significantUsesUntilPrompt = 3
    SwiftRater.daysBeforeReminding = 2
    SwiftRater.showLaterButton = true
    // Set to false before submitting to App Store!!!!
    SwiftRater.debugMode = false
    SwiftRater.appLaunched()
        
    return true
    }
@takecian
Copy link
Owner

I'd like to know reproduction steps.
If you have already show popup(e.g. after trying debug mode), it won't show popup until app version changed.

@mozltovcoktail
Copy link
Author

mozltovcoktail commented May 31, 2019 via email

@mozltovcoktail
Copy link
Author

mozltovcoktail commented May 31, 2019 via email

@takecian
Copy link
Owner

takecian commented Jun 5, 2019

@mozltovcoktail sorry for late reply.
Did it work well? If not, i'd like to know more details. Do you call SwiftRater.check() in viewcontroller?

@mozltovcoktail
Copy link
Author

mozltovcoktail commented Jun 5, 2019

Here's what I have in viewcontroller:

override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
// Check to see if SwiftRater conditions are met
SwiftRater.check(host: self)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants