navigatAR icon indicating copy to clipboard operation
navigatAR copied to clipboard

About the Firebase

Open AHassouneh opened this issue 6 years ago • 19 comments

Could I know the firebase content, since when I tried to create a new user with a new building it keeps shutting down the application

AHassouneh avatar Mar 22 '18 08:03 AHassouneh

Hi @AHassouneh,

In the Firebase Realtime Database (not Cloud Firestore) there is a root objects for buildings, events, nodes, tags, and users. I believe if you create an object in the database root, that should fix any problems. Here's the structure:

{
  "buildings" : {
	  ...
  },
  "events" : {
	  ...
  },
  "nodes" : {
	  ...
  },
  "tags" : {
	  ...
  },
  "users" : {
	  ...
  }
}

You might need to add some initial dummy data to create these objects. If so, try adding some random key + value inside each object but delete it once you create real data via the app.

If you have any trouble setting up the database or have any other problems, let me know!

michaelgira23 avatar Mar 22 '18 15:03 michaelgira23

Thanks a lot for your reply. Actually I've created a new project and replace the google-service.plist and created the roots as you mentioned. Unfortunately it's still the same. Couldn't please export the firebase DB or give me more details. I'll be thankful, since I'm new to the firebase.

AHassouneh avatar Mar 22 '18 19:03 AHassouneh

Here you go @AHassouneh. If that doesn't work, is there any error message you receive when running the app? Also note that you need to add a config.plist in the /navigatAR/navigatAR directory, and you probably have to insert Indoor Atlas API credentials you can obtain by creating an account here.

navigatar-85ec1-export.json.zip

michaelgira23 avatar Mar 22 '18 19:03 michaelgira23

Oh Many thanks, I'll try all the things you mentioned and let you know, Thank you again

AHassouneh avatar Mar 22 '18 19:03 AHassouneh

Thank you a lot. I changed the database accordingly and create an account on IndoorAtlas, and created a config file to include the keys of indoor atlas. accounts to the database are connected correctly, it brings the floor of the buildings from the database that are connected to the account but still it doesn't bring the paths from my map on indoor atlas I'm trying to see what's the problem.

AHassouneh avatar Mar 25 '18 09:03 AHassouneh

@AHassouneh, our app does not use IndoorAtlas' native waypoint system. Instead you would need to go into the app and configure nodes and paths in the manage nodes page. First you create the nodes. The app would try to get your standing location and record it. After you have created multiple nodes, there should be a manage node connections page. Its very clunky but you should be able to see your floorpan and your nodes. You can tap on the nodes to create connections and tap on the connections to cancel them. After you have created the connections, you can go back into the AR page and select a destination node. Then you will see the paths leading to that node.

JackCai1206 avatar Mar 25 '18 14:03 JackCai1206

Thanks for you reply a lot. I'm really sorry for bothering, but I did as you mentioned on dummy data and the map appeared even that the nodes are created only using the database, despite of that I can't navigate since they don't appear in the search despite of appearing in the manage nodes and manage map, as shown in the attached pictures: 20180326_123618

The Navigation window is always empty, nothing appears in the search bar:

20180326_123652

AHassouneh avatar Mar 26 '18 09:03 AHassouneh

Is the app possibly crashing when you try searching? Are you able to share an export of your Firebase DB?

michaelgira23 avatar Mar 28 '18 21:03 michaelgira23

Yeah, that was the problem, and now it works fine. Thank you.

On Thu, Mar 29, 2018 at 12:54 AM, Michael Gira [email protected] wrote:

Is the app possibly crashing when you try searching? Are you able to share an export of your Firebase DB?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/michaelgira23/navigatAR/issues/38#issuecomment-377050279, or mute the thread https://github.com/notifications/unsubscribe-auth/AH6zWUVvsWiaDQ0uCJMrj8RoiGVS0FBcks5tjAadgaJpZM4S2qnb .

-- Regards

Aya

AHassouneh avatar Mar 29 '18 06:03 AHassouneh

Just for future reference, what exactly was causing the crash? Was there just something in the database that wasn't formatted properly? Glad you fixed your issue!

michaelgira23 avatar Mar 29 '18 12:03 michaelgira23

The error was the nodes not in the building... it still exists one similar somewhere else ...now when I want to add a node to my building it gives the specified node is not in the building and doesn't add a new node...

Sent from my Samsung Galaxy smartphone. -------- Original message --------From: Michael Gira [email protected] Date: 3/29/18 3:28 PM (GMT+03:00) To: michaelgira23/navigatAR [email protected] Cc: AHassouneh [email protected], Mention [email protected] Subject: Re: [michaelgira23/navigatAR] About the Firebase (#38) Just for future reference, what exactly was causing the crash? Was there just something in the database that wasn't formatted properly? Glad you fixed your issue!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

AHassouneh avatar Mar 29 '18 13:03 AHassouneh

When you get this error, is it an error message displayed in the app itself or does the app crash with the error message "the specified node is not in the building"?

I took a look at the code and I don't think we have any error message like that (though please correct me if I'm wrong). If it isn't us, it might be an Indoor Atlas issue. For the building configuration online, maybe try moving the building's coordinate point closer to where you are trying to create a node?

michaelgira23 avatar Mar 29 '18 14:03 michaelgira23

yeah yeah, I just noticed it's from the indoorAtlas, and it's the normal message from your code " not in the building" . I'll send you screenshots if any bug appears before solving it.

On Thu, Mar 29, 2018 at 5:19 PM, Michael Gira [email protected] wrote:

When you get this error, is it an error message displayed in the app itself or does the app crash with the error message "the specified node is not in the building"?

I took a look at the code and I don't think we have any error message like that (though please correct me if I'm wrong). If it isn't us, it might be an Indoor Atlas issue. For the building configuration online, maybe try moving the building's coordinate point closer to where you are trying to create a node?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/michaelgira23/navigatAR/issues/38#issuecomment-377250248, or mute the thread https://github.com/notifications/unsubscribe-auth/AH6zWSRvuBWm_pYNJOBddz8ct21ZaW52ks5tjO1ngaJpZM4S2qnb .

-- Regards

Aya

AHassouneh avatar Mar 29 '18 17:03 AHassouneh

Dear Mr. Mochael,

Hope you're doing well.

Actually, Everything is nice and good except the positioning of the points are wrong. I put my points on the Map using Atlas, but the arrow in the navigation is going to wrong position. What do you think the problem. Does this code work indoors, or the signals are weak?

On Thu, Mar 29, 2018 at 8:46 PM, Aya Hassouneh [email protected] wrote:

yeah yeah, I just noticed it's from the indoorAtlas, and it's the normal message from your code " not in the building" . I'll send you screenshots if any bug appears before solving it.

On Thu, Mar 29, 2018 at 5:19 PM, Michael Gira [email protected] wrote:

When you get this error, is it an error message displayed in the app itself or does the app crash with the error message "the specified node is not in the building"?

I took a look at the code and I don't think we have any error message like that (though please correct me if I'm wrong). If it isn't us, it might be an Indoor Atlas issue. For the building configuration online, maybe try moving the building's coordinate point closer to where you are trying to create a node?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/michaelgira23/navigatAR/issues/38#issuecomment-377250248, or mute the thread https://github.com/notifications/unsubscribe-auth/AH6zWSRvuBWm_pYNJOBddz8ct21ZaW52ks5tjO1ngaJpZM4S2qnb .

-- Regards

Aya

-- Regards

Aya

AHassouneh avatar May 06 '18 08:05 AHassouneh

Hey @AHassouneh, sorry I forgot to respond to your message!

If you're still trying to figure out the problem, the problem might be related to IndoorAtlas. IndoorAtlas is what we use for positioning, so any problems with positioning would be related to the configuration of that. You should be able to use navigatAR indoors to the accuracy that IndoorAtlas provides.

The pathfinding algorithm works by drawing an arrow from the phone's position to the nearest node, then using the node connections to navigate to the destination node.

michaelgira23 avatar Nov 12 '18 04:11 michaelgira23

Ok Thank you

On Mon, Nov 12, 2018 at 7:16 AM Michael Gira [email protected] wrote:

Hey @AHassouneh https://github.com/AHassouneh, sorry I forgot to respond to your message!

If you're still trying to figure out the problem, the problem might be related to IndoorAtlas. IndoorAtlas is what we use for positioning, so any problems with positioning would be related to the configuration of that. You should be able to use navigatAR indoors to the accuracy that IndoorAtlas provides.

The pathfinding algorithm works by drawing an arrow from the phone's position to the nearest node, then using the node connections to navigate to the destination node.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/michaelgira23/navigatAR/issues/38#issuecomment-437748862, or mute the thread https://github.com/notifications/unsubscribe-auth/AH6zWQBI1h42Mcxp-C61tPCXTo479LAwks5uuPYqgaJpZM4S2qnb .

-- Regards

Aya

AHassouneh avatar Nov 12 '18 07:11 AHassouneh

Hi again,

Thanks a lot for your help.

Just wondering did you use iBeacon in you project?

On Mon, Nov 12, 2018 at 10:32 AM Aya Hassouneh [email protected] wrote:

Ok Thank you

On Mon, Nov 12, 2018 at 7:16 AM Michael Gira [email protected] wrote:

Hey @AHassouneh https://github.com/AHassouneh, sorry I forgot to respond to your message!

If you're still trying to figure out the problem, the problem might be related to IndoorAtlas. IndoorAtlas is what we use for positioning, so any problems with positioning would be related to the configuration of that. You should be able to use navigatAR indoors to the accuracy that IndoorAtlas provides.

The pathfinding algorithm works by drawing an arrow from the phone's position to the nearest node, then using the node connections to navigate to the destination node.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/michaelgira23/navigatAR/issues/38#issuecomment-437748862, or mute the thread https://github.com/notifications/unsubscribe-auth/AH6zWQBI1h42Mcxp-C61tPCXTo479LAwks5uuPYqgaJpZM4S2qnb .

-- Regards

Aya

-- Regards

Aya

AHassouneh avatar Jan 01 '19 18:01 AHassouneh

We've mapped out venues both with a beacon and without. We haven't done enough testing to make any definitive consensus, but I think using iBeacons with IndoorAtlas would make positioning more accurate because it's another mechanism of acquiring the user's position.

michaelgira23 avatar Jan 01 '19 19:01 michaelgira23

thanks for your reply and for the information.

On Tue, Jan 1, 2019 at 10:34 PM Michael Gira [email protected] wrote:

We've mapped out venues both with a beacon and without. We haven't done enough testing to make any definitive consensus, but I think using iBeacons with IndoorAtlas would make positioning more accurate because it's another mechanism of acquiring the user's position.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/michaelgira23/navigatAR/issues/38#issuecomment-450751994, or mute the thread https://github.com/notifications/unsubscribe-auth/AH6zWSoaLPR81GhHa6hNl8iNMfG6V4_dks5u-7hhgaJpZM4S2qnb .

-- Regards

Aya

AHassouneh avatar Jan 03 '19 18:01 AHassouneh