nguyenthong / geo_chat Goto Github PK
View Code? Open in Web Editor NEWGeo_chat app( Ionic with firebase)
Geo_chat app( Ionic with firebase)
var promise = RoomService.all(key, locationArr, distance, user_location, range);
var observable = rx.Observable
.fromPromise(promise)
.map(function (container) {
return container.circles;
});
observable.subscribe(function (circles) {
$scope.circles = circles; // the circles arrived over time, after the promises was initialized
});
uiGmapGoogleMapApi.then(function(maps) {
geoQuery.on("key_entered", function(key, location, distance) {
roomRef.child(key).once("value", function (data) {
//todo remove this in production
//console.log(key + " entered query at " + location + " (" + distance + " km from center)");
//console.log(data.val());
This code query every rooms inside the 2km radius then an through the function userInCircleDetection(){} for checking the room user can access.
*Therefore I think the problem might be in this part, it checking every room, when it hit the first room it already return the promises *
I think the problem related to Android platform installation was caused by my old Cordova installation. There seem to be a "bug" in npm so that if I type "npm install cordova -g" it's failing silently if there is already some old Cordova installation. Mine was 3.3.1-0.1.2 from year 2013 when I made Cordova applications. That one was not npm installation. Ionic is not compatible with so old Cordova.
It's always good to check all program versions with -v before doing any other troubleshooting.
Hi there,
Would love to check out your app. When I execute a 'bower install' for the dependencies , it just stalls after RSVP:
}, {
"type": "input",
"message": "Answer",
"name": "prompt",
"level": "prompt"
Any idea how to fix this?
Thanks for sharing.
Hi man,
If you want, you can merge your project to my starter template!
Link: https://github.com/jdnichollsc/Ionic-Starter-Template
Regards, Nicholls
user able to drag around to see chat room
You could correct README.MD installation Bower to bower (No capital B)
Hi man,
What do you think to migrate the example to use Firebase 3? ๐ฏ
Regards, Nicholls
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.