[plugin] firebase

Post your completed addons to share with the community

Post » Tue Dec 06, 2016 4:01 pm

@rexrainbow

First of all, awesome work with this plugin. Thank you very much.

Now to my issue: I built an account system using firebaseV3. Everything works fine, users can change their displaynames and password, all good.
Except the fact that the event "On profile update error" doesn't seem to trigger when the display name that has been entered in the "Update profile" action already exists...

To test this, I created two accounts in firebase and changed their usernames in my C2 program. And even when I choose the display name that the other account already has, it changes the display name.
Is that intended?
I thought that the "Update profile" action would prevent same display names.

Thanks again!
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091


Post » Wed Dec 07, 2016 3:03 am

@Lasmelan

Oops, fixed. Thanks to point out it.
B
108
S
26
G
259
Posts: 4,430
Reputation: 145,679

Post » Wed Dec 07, 2016 3:11 am

@randomly

"Display name" is not an unique string in firebase service, It is an alias name of user.
Try userid2id to have an unique name of an userID.
B
108
S
26
G
259
Posts: 4,430
Reputation: 145,679

Post » Wed Dec 07, 2016 6:41 pm

@rexrainbow tried using userid2id.
Works like a charm except that I can't seem to actually change an ID.
I figured I can set as many ID's as I want but as soon as I want to set an ID with a UserID that is already bound to an ID. (The one I want to change)
It triggers "On request ID failed".

To have an effective username system, I would need to
  1. Trigger success when trying to set an ID that is bound to my UserID
  2. Trigger error when trying to set an ID that is already bound to a different UserID

(Or is it just me being too dumb to use your awesome plugin? O_o)

Thank you for your help.

EDIT: any way to delete a ID would resolve that issue too.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Thu Dec 08, 2016 3:41 am

Update

rex_firebase_userid2id plugin: add "Action:Remove User ID"


@randomly
Added.
"ID" is an alias name of UserID to help user to point out another user (get userID from this "ID" for remaining actions), since the original userID is not friendly for human. This "ID" won't be changed, imo.


Anyway, now it could remove the registered userID to change the ID.
B
108
S
26
G
259
Posts: 4,430
Reputation: 145,679

Post » Thu Dec 08, 2016 9:50 am

norman74 wrote:@rexrainbow, where can i download "File Upload" plugin for smaple capx for rex_parse_savedata?


Where I can find "File upload" and "file system" parse plugins?. I have been trying to find them for the las two hours :-) . I have them installed in the right scirra folder, all of other Parse plugins appear but not these two. Help is always appreciated!. Peace and love!
B
4
G
1
Posts: 4
Reputation: 933

Post » Thu Dec 08, 2016 10:29 am

@Bitmichael

rex_parse_fileupload had been deprecated. They could be shown by "right clicking -> show deprecated plugin" in "Insert new object" dialog.
(Don't use parse file system plugin. )

I recommend using
- rex_firebase_storage, or
- rex_backendless_files
to store files.
B
108
S
26
G
259
Posts: 4,430
Reputation: 145,679

Post » Thu Dec 08, 2016 4:12 pm

rexrainbow wrote:Update

rex_firebase_userid2id plugin: add "Action:Remove User ID"

Awesome, thanks for the fast response.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Mon Dec 12, 2016 9:50 pm

Another question concerning Storage plugin: just realized there isn't any way to update a file's metadata in the firebase console UI, but there is one in the API.

Will you release a way to get and update a file's metadata in the storage plugin?
(or to upload a file with metadata included)
Thanks.

Here is the link to the API:
Firebase Metadata documentation
Firebase Upload File with Metadata documentation (under "Add File Metadata")
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests