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

FirstLaunchOfNewVersion #13

Closed
ptigro89 opened this issue Feb 12, 2018 · 3 comments
Closed

FirstLaunchOfNewVersion #13

ptigro89 opened this issue Feb 12, 2018 · 3 comments

Comments

@ptigro89
Copy link

Hello,

I want to update information when user opens the app for the first time after a specific update, so I'm subscribing to firstLaunchOfNewVersionOnly as specified in the doc. But I never enter it even if I've changed the version number from 5.2 to 6.0. I'm using the version 1.1.0 of RxAppState.

Do you have any idea please ?

@pixeldock
Copy link
Owner

Hi there,

thanks for opening this issue! I'll have a look at that as soon as possible and come back to you.

@pixeldock
Copy link
Owner

Sorry about the late reply. I had a look at your issue and you are right. firstLaunchOfNewVersionOnly is not working correctly. I'll try to fix that as soon as possible.

In the meantime please use this instead:

UIApplication.shared.rx.isFirstLaunchOfNewVersion
    .filter { $0 }
    .subscribe(onNext: { _ in
        // do what you want to do when first launching a new version
    })
    .disposed(by: disposeBag)

@pixeldock
Copy link
Owner

I just released RxAppState 1.1.1 which fixes this issues. Thanks for finding this bug @ptigro89 !

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