firebase / geofire-js

GeoFire for JavaScript - Realtime location queries with Firebase
MIT License
1.45k stars 347 forks source link

Possible Unhandled Promise Rejection? #135

Closed agumack closed 7 years ago

agumack commented 7 years ago

Hi guys,

I have use geofire with react-native. i have one error message "Possible Unhandled Promise Rejection" when call:

var geoFire = firebaseApp.geoInit("fanpages-geo"); //new GeoFire(firebaseApp.database.ref("fanpages-geo"));
        var geoQuery = geoFire.query({
            center: [11.933333, 108.450000],
            radius: 10.5
        });

        var onReadyRegistration = geoQuery.on("ready", function () {
            console.log("GeoQuery has loaded and fired all other events for initial data");
        });

Thanks for support!

jwngr commented 7 years ago

Can you please fill out the issue template so I know what versions of each library (Firebase, GeoFire, React Native) you are using?

agumack commented 7 years ago

Hi @jwngr Thank you for reply. I am using: "react-native": "0.37" "firebase": "^3.6.8", "geofire": "^4.1.2",

This is screenshot:

screen shot 2017-02-13 at 9 12 44 am

Logs:

screen shot 2017-02-13 at 9 12 56 am
agumack commented 7 years ago

this is error when I integration "react-native-firestack" I remove react-native-firestack and working now. Thanks for support!

jwngr commented 7 years ago

Sounds like that library is the one with the issues then. Thanks for the report.