ionic-firebase icon indicating copy to clipboard operation
ionic-firebase copied to clipboard

data is messed up

Open amrayoub opened this issue 9 years ago • 4 comments

the Json data is messed up and the rooms page has many ambiguous names can you fix it please

amrayoub avatar Jun 16 '16 10:06 amrayoub

I am busy in some personal engagements, I will fix this up the coming week.

mappmechanic avatar Jun 21 '16 04:06 mappmechanic

I have already solved the problem . just save these on Json file then import it on firebase

{

"rooms" : [ {

"chats" : {

"-JglJnGDXcqLq6m844pZ" : {

"createdAt" : 1422461711580,

"from" : "Vla2",

"message" : "Ahh que duro estoy. App pa android y la web at the same time"

}

},

"icon" : "ion-university",

"id" : 0,

"name" : "Academics",

"notes" : "Discuss about education, colleges & degrees"

}, {

"chats" : {

"-Jg7fpJg910-ytGND3Ky" : {

"createdAt" : 1421779883628,

"from" : "rahulluthra",

"message" : "Which Camera should I buy for beginners?"

}

},

"icon" : "ion-camera",

"id" : 1,

"name" : "Photography",

"notes" : "Discuss about photography, cameras, picture modes"

}, {

"chats" : {

"-JgA5BQCjRj-p7EOHD20" : {

"createdAt" : 1421820348392,

"from" : "rahatkh",

"message" : "I love to hear classical music."

}

},

"icon" : "ion-music-note",

"id" : 2,

"name" : "Music",

"notes" : "Talk to fellow music lovers about latest songs & albums"

}, {

"chats" : {

"-JgAI2J4ksJJJA8hxNJK" : {

"createdAt" : 1421823734183,

"from" : "ankit",

"message" : "hiiiii"

}

},

"icon" : "ion-woman",

"id" : 3,

"name" : "Fashion",

"notes" : "Talk about latest fashion, clothes & accessories"

}, {

"chats" : {

},

"icon" : "ion-plane",

"id" : 4,

"name" : "Travel",

"notes" : "Discuss about holidays, vacations & travel deals"

} ],

"users" : {

"simplelogin:10" : {

"displayName" : "rahulluthra",

"email" : "[email protected]"

},

"simplelogin:11" : {

"displayName" : "rahatkh",

"email" : "[email protected]"

}

}

}

amrayoub avatar Jun 21 '16 17:06 amrayoub

@amrayoub can you please do a pull request merge? and please indent this file, reading this data seens so wrong, its that the right schema? can you tell me how you got it?

chroda avatar Jun 21 '16 17:06 chroda

no problem , just change firebase url in app.js to this var firebaseUrl = "https://ioniconenctme.firebaseio.com/"

amrayoub avatar Jun 21 '16 18:06 amrayoub