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

Firebase database limitToLast not working on Android #10823

Closed
KevinTheGray opened this issue Jun 18, 2017 · 6 comments
Closed

Firebase database limitToLast not working on Android #10823

KevinTheGray opened this issue Jun 18, 2017 · 6 comments
Assignees
Labels
customer: posse (eap) p: firebase Firebase plugins platform-android Android applications specifically

Comments

@KevinTheGray
Copy link

KevinTheGray commented Jun 18, 2017

Steps to Reproduce

  • Test on an Android device
  • Use firebase_database: "^0.0.7"
  • Make a query, something like
Query query = itemsReference
        .orderByChild("published-date")
        .limitToLast(4);
  • I get back ten items when I would expect 4

Flutter Doctor

[✓] Flutter (on Mac OS X 10.12.4 16E195, locale en-US, channel master)
    • Flutter at /Users/KG/Developer/Flutter/flutter
    • Framework revision 6965312822 (2 days ago), 2017-06-16 10:05:18 -0700
    • Engine revision 784e975672
    • Tools Dart version 1.24.0-dev.6.7

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.0)
    • Android SDK at /Users/KG/Library/Android/sdk
    • Platform android-26, build-tools 26.0.0
    • ANDROID_HOME = /Users/KG/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 8.3.3, Build version 8E3004b
    • ios-deploy 1.9.1
    • CocoaPods version 1.2.1

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Gradle version 3.2
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Community Edition (version 2017.1.4)
    • Flutter plugin version 14.0
    • Dart plugin version 171.4694.29

[✓] Connected devices
    • Android SDK built for x86 • emulator-5554                            • android-x86 • Android 7.0 (API 24) (emulator)
    • Nexus 5X                  • 0106bcc49c8ca3eb                         • android-arm • Android 7.1.2 (API 25)
    • Kevin's iPhone            • c95c86bdc3aac565adb373de3dc2dbedcdecc900 • ios         • iOS 10.3.1 (14E304)
    • iPhone 5s                 • AB2FA880-541C-49D7-BDB2-9720261982A3     • ios         • iOS 10.3 (simulator)
@eseidelGoogle
Copy link
Contributor

@collinjackson would know.

@eseidelGoogle eseidelGoogle added the platform-android Android applications specifically label Jun 19, 2017
@collinjackson
Copy link
Contributor

Investigating. Thanks.

@collinjackson
Copy link
Contributor

collinjackson commented Jun 20, 2017

I had meant to include this in flutter/plugins#89, but didn't. It will be landed in flutter/plugins#144.

@collinjackson
Copy link
Contributor

Fixed in flutter/plugins#144 (version 0.0.8)

@kroikie
Copy link

kroikie commented Oct 13, 2019

@KevinTheGray

This issue has been moved to firebase/flutterfire#993. Any further collaboration will be done there.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer: posse (eap) p: firebase Firebase plugins platform-android Android applications specifically
Projects
None yet
Development

No branches or pull requests

4 participants