-
Notifications
You must be signed in to change notification settings - Fork 44
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
[solved]custom configurations ignored...cant set dialog to "force" #5
Comments
Thanks Xstar97, We'll take a look at this pronto. Just in case it helps, do you have a code snippet you can share? Thx. |
Fwiw, I created the screenshots by using the various options, so it was working to some extent... |
@yurii-diachenko can you please take a look, and also create a test to cover the |
//above oncreate
|
@xstar97, and what is the current version of your app? I wonder if adding the following will get the bahaviour you want:
In the meantime, we'll check the logic for Major when using |
The version Code is 4, but my json states 5 for testing purposes
|
its still the same...config is still not working me...is it working with you? |
private static final String TAG = MainActivity.class.getSimpleName(); in this line "TAG" is yellow...does this have any merit in the error or no? |
also I cant add any older version to my build.gradle...in aide |
Thanks for that extra info. I've replicated this behaviour. Now I'm trying to work out why it's broken. I expect to update here shortly... though my laptop battery is running out...! |
Thanks! Glad to have help an awesome library!
|
In the meantime, I know you switched to using |
Your solution worked for me thanks...Your a life saver! |
Thanks. Glad it is working for you now, and thanks for reporting this and the prompt responses! I think we still need to either more clearly document the current behaviour and/or fix the |
@Apisov, please take a look at this. thx! |
@xstar97 Did you try using I sort of assumed that so I didn't ask, but now that we're testing, it seems that it works as expected. Maybe we just need to update the documentation to fix this! |
I've confirmed that this appears to work as requested: private void checkAvailableVersion() {
Siren siren = Siren.getInstance(getApplicationContext());
siren.setVersionCodeUpdateAlertType(SirenAlertType.FORCE);
siren.checkVersion(this, SirenVersionCheckType.IMMEDIATELY, SIREN_JSON_DOCUMENT_URL);
} |
* refactor some repeated setup code * remove extraneous tests related to issue #5
I tried multiple ways & even followed the sample to the letter, but I can't set my dialog to "force" so I can finally "force" my users to install the latest updates....it keeps using the default settings...the two button dismiss & update!
this is the only library that worked for me & its the simplest...but it just won't let me set my own configurations what so ever
I also even changed my json file from version name to versioncode just to be sure...but its still the same problem
The text was updated successfully, but these errors were encountered: