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

Library doesn't recognize the Nextcloud Dev app #46

Closed
strugee opened this issue Mar 8, 2019 · 5 comments
Closed

Library doesn't recognize the Nextcloud Dev app #46

strugee opened this issue Mar 8, 2019 · 5 comments

Comments

@strugee
Copy link
Member

strugee commented Mar 8, 2019

STR:

  1. Install Nextcloud Dev
  2. Install Nextcloud News
    3 Try to use the SSO option in News

You'll get a message asking you to install the files app, even though the development version is already installed. I'm assuming this is the right place for this issue but I'm happy to refile in the downstream News issue tracker if that's the right place.

@David-Development
Copy link
Member

Thanks for the feedback. Yes, this is the right place. Indeed, this shouldn't happen.. It shouldn't matter if you have the dev version or the one from google play.

Couple of questions for you:

  • What Android Version are you on?
  • Did you compile the nextcloud dev version yourself?
  • What version of the nextcloud news app are you using?

@strugee
Copy link
Member Author

strugee commented Mar 8, 2019

I'm on LineageOS 15.1 (Android 8.1). Both apps are installed from F-Droid. News version is 0.9.9.25.

@David-Development
Copy link
Member

@strugee Thank you :)

@tobiasKaminsky the problem is, that we don't support the dev version yet. As the package is different from (com.nextcloud.client), the sso library won't pick up its existence.

Is this something we should support? If yes, how do we handle it if both apps are installed and the user configured different accounts in each app? Or the same account?

Problematic snippets:

if (appInstalledOrNot(fragment.getContext(), "com.nextcloud.client")) {

https://github.com/nextcloud/Android-SingleSignOn/blob/82bbca0e8ff79eb0cf5690096d84f5c5a7def26a/src/main/java/com/nextcloud/android/sso/helper/VersionCheckHelper.java

@tobiasKaminsky
Copy link
Member

Is this something we should support?

If that is not too much work, why not…

If yes, how do we handle it if both apps are installed and the user configured different accounts in each app? Or the same account?

When querying & displaying the accounts we then would need to check on both apps and should add (dev) to the dev version accounts.

Accounts from dev and stable app which point to the same user (e.g. tobias@cloud.example.com) should then be distinguished.

@strugee
Copy link
Member Author

strugee commented Jul 2, 2019

Closing since #63 got merged and 0.4.0 went out with (according to the GitHub release notes) support for this. If that's not right feel free to reopen! Thanks 👍

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

3 participants