Create unique notes for usersFirebase Auth and DatabaseHow do I create a transparent Activity on Android?Is there a unique Android device ID?Can't create handler inside thread that has not called Looper.prepare()Android “Only the original thread that created a view hierarchy can touch its views.”Get users by name property using FirebaseHow to create RecyclerView with multiple view type?Moshi's Custom Adapter with RxAndroid & Retrofit & KotlinGet children using orderByChild-equalsTo in Firebase-AndroidAdding Social Media Share Logic From Firebase in AndroidUpdated global variables does not reflect inside ValueEventListener's onCancelled method
Inside Out and Back to Front
Is encryption still applied if you ignore the SSL certificate warning for self-signed certs?
Could a US citizen born through "birth tourism" become President?
What are my hardware upgrade optoins for a late 2009 iMac?
Making a Dataset that emulates `ls -tlra`?
When will the last unambiguous evidence of mankind disappear?
Can a creature sustain itself by eating its own severed body parts?
You have no, but can try for yes
Is it ethical to tell my teaching assistant that I like them?
To what extent does asymmetric cryptography secure bitcoin transactions?
Which modern firearm should a time traveler bring to be easily reproducible for a historic civilization?
Parser for STL stereolithography data files
What makes MOVEQ quicker than a normal MOVE in 68000 assembly?
Counting multiples of 3 up to a given number
Why are there few or no black super GMs?
Should I have one hand on the throttle during engine ignition?
Get Chord Name From a Given Set of Notes
Applying for jobs with an obvious scar
Project Euler # 25 The 1000 digit Fibonacci index
Why xargs uses -t to enable verbose mode?
I want light controlled by one switch, not two
Why is this guy handcuffed censored?
Should I have shared a document with a former employee?
Does a hash function have a Upper bound on input length?
Create unique notes for users
Firebase Auth and DatabaseHow do I create a transparent Activity on Android?Is there a unique Android device ID?Can't create handler inside thread that has not called Looper.prepare()Android “Only the original thread that created a view hierarchy can touch its views.”Get users by name property using FirebaseHow to create RecyclerView with multiple view type?Moshi's Custom Adapter with RxAndroid & Retrofit & KotlinGet children using orderByChild-equalsTo in Firebase-AndroidAdding Social Media Share Logic From Firebase in AndroidUpdated global variables does not reflect inside ValueEventListener's onCancelled method
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Implemented in the application firebase authentication. As well as the ability to add and delete records. But when I go with another account, the records are the same everywhere.
Q: how can I create my own records for each authorized user?
Now have smth like this:
As I understood from the comment I need to add another field to my structure: "users". And ultimately get type target-list - > users - > targets
But for example in my main activity I select as follows:databaseReference = FirebaseDatabase.getInstance().getReference("targets")
How do I understand here I have to change the structure?
UPD:
I tried to to next:
private fun updateListData()
val uid = FirebaseAuth.getInstance().currentUser?.uid ?: ""
databaseReference = FirebaseDatabase.getInstance().getReference("targets").child(uid)
getTargetsFromDb()
and in getTargetsFromDb():
private fun getTargetsFromDb()
databaseReference?.addValueEventListener(object : ValueEventListener
override fun onDataChange(dataSnapshot: DataSnapshot)
for (targetSnapshot in dataSnapshot.children)
val target = targetSnapshot.getValue(Target::class.java)
target?.let targetList.add(it)
recyclerView?.adapter = adapter
override fun onCancelled(databaseError: DatabaseError)
Log.d("some", "Error trying to get targets for $databaseError.message")
)
And get next structure:
android firebase firebase-realtime-database kotlin
|
show 10 more comments
Implemented in the application firebase authentication. As well as the ability to add and delete records. But when I go with another account, the records are the same everywhere.
Q: how can I create my own records for each authorized user?
Now have smth like this:
As I understood from the comment I need to add another field to my structure: "users". And ultimately get type target-list - > users - > targets
But for example in my main activity I select as follows:databaseReference = FirebaseDatabase.getInstance().getReference("targets")
How do I understand here I have to change the structure?
UPD:
I tried to to next:
private fun updateListData()
val uid = FirebaseAuth.getInstance().currentUser?.uid ?: ""
databaseReference = FirebaseDatabase.getInstance().getReference("targets").child(uid)
getTargetsFromDb()
and in getTargetsFromDb():
private fun getTargetsFromDb()
databaseReference?.addValueEventListener(object : ValueEventListener
override fun onDataChange(dataSnapshot: DataSnapshot)
for (targetSnapshot in dataSnapshot.children)
val target = targetSnapshot.getValue(Target::class.java)
target?.let targetList.add(it)
recyclerView?.adapter = adapter
override fun onCancelled(databaseError: DatabaseError)
Log.d("some", "Error trying to get targets for $databaseError.message")
)
And get next structure:
android firebase firebase-realtime-database kotlin
You have to add a one layer on top of targets with the user-id key. Doing this every user have their own list of targets
– Murdok
Mar 26 at 11:59
@Murdok thx, I have updated the question, if not difficult, please see
– Morozov
Mar 26 at 12:08
Why are you using as the unique identifier a pushed id rather than theuid
that is coming from the authentication process?
– Alex Mamo
Mar 26 at 12:22
@AlexMamo But how can I use the one that comes from the authentication process?
– Morozov
Mar 26 at 12:25
@AlexMamo I so understand I can use it inonActivityResult()
when I successfully pass authorization?
– Morozov
Mar 26 at 12:27
|
show 10 more comments
Implemented in the application firebase authentication. As well as the ability to add and delete records. But when I go with another account, the records are the same everywhere.
Q: how can I create my own records for each authorized user?
Now have smth like this:
As I understood from the comment I need to add another field to my structure: "users". And ultimately get type target-list - > users - > targets
But for example in my main activity I select as follows:databaseReference = FirebaseDatabase.getInstance().getReference("targets")
How do I understand here I have to change the structure?
UPD:
I tried to to next:
private fun updateListData()
val uid = FirebaseAuth.getInstance().currentUser?.uid ?: ""
databaseReference = FirebaseDatabase.getInstance().getReference("targets").child(uid)
getTargetsFromDb()
and in getTargetsFromDb():
private fun getTargetsFromDb()
databaseReference?.addValueEventListener(object : ValueEventListener
override fun onDataChange(dataSnapshot: DataSnapshot)
for (targetSnapshot in dataSnapshot.children)
val target = targetSnapshot.getValue(Target::class.java)
target?.let targetList.add(it)
recyclerView?.adapter = adapter
override fun onCancelled(databaseError: DatabaseError)
Log.d("some", "Error trying to get targets for $databaseError.message")
)
And get next structure:
android firebase firebase-realtime-database kotlin
Implemented in the application firebase authentication. As well as the ability to add and delete records. But when I go with another account, the records are the same everywhere.
Q: how can I create my own records for each authorized user?
Now have smth like this:
As I understood from the comment I need to add another field to my structure: "users". And ultimately get type target-list - > users - > targets
But for example in my main activity I select as follows:databaseReference = FirebaseDatabase.getInstance().getReference("targets")
How do I understand here I have to change the structure?
UPD:
I tried to to next:
private fun updateListData()
val uid = FirebaseAuth.getInstance().currentUser?.uid ?: ""
databaseReference = FirebaseDatabase.getInstance().getReference("targets").child(uid)
getTargetsFromDb()
and in getTargetsFromDb():
private fun getTargetsFromDb()
databaseReference?.addValueEventListener(object : ValueEventListener
override fun onDataChange(dataSnapshot: DataSnapshot)
for (targetSnapshot in dataSnapshot.children)
val target = targetSnapshot.getValue(Target::class.java)
target?.let targetList.add(it)
recyclerView?.adapter = adapter
override fun onCancelled(databaseError: DatabaseError)
Log.d("some", "Error trying to get targets for $databaseError.message")
)
And get next structure:
android firebase firebase-realtime-database kotlin
android firebase firebase-realtime-database kotlin
edited Mar 27 at 16:18
Alex Mamo
53.3k9 gold badges36 silver badges72 bronze badges
53.3k9 gold badges36 silver badges72 bronze badges
asked Mar 26 at 11:42
MorozovMorozov
1,3501 gold badge11 silver badges32 bronze badges
1,3501 gold badge11 silver badges32 bronze badges
You have to add a one layer on top of targets with the user-id key. Doing this every user have their own list of targets
– Murdok
Mar 26 at 11:59
@Murdok thx, I have updated the question, if not difficult, please see
– Morozov
Mar 26 at 12:08
Why are you using as the unique identifier a pushed id rather than theuid
that is coming from the authentication process?
– Alex Mamo
Mar 26 at 12:22
@AlexMamo But how can I use the one that comes from the authentication process?
– Morozov
Mar 26 at 12:25
@AlexMamo I so understand I can use it inonActivityResult()
when I successfully pass authorization?
– Morozov
Mar 26 at 12:27
|
show 10 more comments
You have to add a one layer on top of targets with the user-id key. Doing this every user have their own list of targets
– Murdok
Mar 26 at 11:59
@Murdok thx, I have updated the question, if not difficult, please see
– Morozov
Mar 26 at 12:08
Why are you using as the unique identifier a pushed id rather than theuid
that is coming from the authentication process?
– Alex Mamo
Mar 26 at 12:22
@AlexMamo But how can I use the one that comes from the authentication process?
– Morozov
Mar 26 at 12:25
@AlexMamo I so understand I can use it inonActivityResult()
when I successfully pass authorization?
– Morozov
Mar 26 at 12:27
You have to add a one layer on top of targets with the user-id key. Doing this every user have their own list of targets
– Murdok
Mar 26 at 11:59
You have to add a one layer on top of targets with the user-id key. Doing this every user have their own list of targets
– Murdok
Mar 26 at 11:59
@Murdok thx, I have updated the question, if not difficult, please see
– Morozov
Mar 26 at 12:08
@Murdok thx, I have updated the question, if not difficult, please see
– Morozov
Mar 26 at 12:08
Why are you using as the unique identifier a pushed id rather than the
uid
that is coming from the authentication process?– Alex Mamo
Mar 26 at 12:22
Why are you using as the unique identifier a pushed id rather than the
uid
that is coming from the authentication process?– Alex Mamo
Mar 26 at 12:22
@AlexMamo But how can I use the one that comes from the authentication process?
– Morozov
Mar 26 at 12:25
@AlexMamo But how can I use the one that comes from the authentication process?
– Morozov
Mar 26 at 12:25
@AlexMamo I so understand I can use it in
onActivityResult()
when I successfully pass authorization?– Morozov
Mar 26 at 12:27
@AlexMamo I so understand I can use it in
onActivityResult()
when I successfully pass authorization?– Morozov
Mar 26 at 12:27
|
show 10 more comments
1 Answer
1
active
oldest
votes
Accodring to your comments and messages, you want to create targets for each user separately. Using your actual structure you have the users and targets separately. To solve this, I recommend you another database structure that looks like this:
Firebase-root
|
--- targets
|
--- uid
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Morozov"
To get all the targets that corresponde to a particular user, simply use the following query:
val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val uidRef = rootRef.child("targets").child(uid)
uidRef.addListenerForSingleValueEvent(/* ... */);
An alternative database structure might be:
Firebase-root
|
--- targets
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
| |
| --- uid: "VDMQ ... 0nw1"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Svetlana"
|
--- uid: "eluk ... PJu1"
As you can see, it has a level less than the previous structure. Now, to get all the targets that corresponde to a particular user, please use the following query:
val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val targetsRef = rootRef.child("targets").orderByChild("uid").equalTo(uid)
targetsRef.addListenerForSingleValueEvent(/* ... */);
So it's up to you to decide which one is better for you.
in the second case you get the Query fortargetsRef
. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?
– Morozov
Mar 26 at 14:21
1
Sure you need to create a user in the database. I didn't add theusers
node because of space but you definetely should add it.
– Alex Mamo
Mar 26 at 14:27
Hi Morozov! Is there everything alright, can I help you with other informations?
– Alex Mamo
Mar 27 at 9:45
Updated question. Can u check please? Maybe I should share my test project. in git as an example?
– Morozov
Mar 27 at 16:01
As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.
– Alex Mamo
Mar 27 at 16:17
|
show 6 more comments
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55356311%2fcreate-unique-notes-for-users%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Accodring to your comments and messages, you want to create targets for each user separately. Using your actual structure you have the users and targets separately. To solve this, I recommend you another database structure that looks like this:
Firebase-root
|
--- targets
|
--- uid
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Morozov"
To get all the targets that corresponde to a particular user, simply use the following query:
val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val uidRef = rootRef.child("targets").child(uid)
uidRef.addListenerForSingleValueEvent(/* ... */);
An alternative database structure might be:
Firebase-root
|
--- targets
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
| |
| --- uid: "VDMQ ... 0nw1"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Svetlana"
|
--- uid: "eluk ... PJu1"
As you can see, it has a level less than the previous structure. Now, to get all the targets that corresponde to a particular user, please use the following query:
val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val targetsRef = rootRef.child("targets").orderByChild("uid").equalTo(uid)
targetsRef.addListenerForSingleValueEvent(/* ... */);
So it's up to you to decide which one is better for you.
in the second case you get the Query fortargetsRef
. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?
– Morozov
Mar 26 at 14:21
1
Sure you need to create a user in the database. I didn't add theusers
node because of space but you definetely should add it.
– Alex Mamo
Mar 26 at 14:27
Hi Morozov! Is there everything alright, can I help you with other informations?
– Alex Mamo
Mar 27 at 9:45
Updated question. Can u check please? Maybe I should share my test project. in git as an example?
– Morozov
Mar 27 at 16:01
As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.
– Alex Mamo
Mar 27 at 16:17
|
show 6 more comments
Accodring to your comments and messages, you want to create targets for each user separately. Using your actual structure you have the users and targets separately. To solve this, I recommend you another database structure that looks like this:
Firebase-root
|
--- targets
|
--- uid
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Morozov"
To get all the targets that corresponde to a particular user, simply use the following query:
val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val uidRef = rootRef.child("targets").child(uid)
uidRef.addListenerForSingleValueEvent(/* ... */);
An alternative database structure might be:
Firebase-root
|
--- targets
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
| |
| --- uid: "VDMQ ... 0nw1"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Svetlana"
|
--- uid: "eluk ... PJu1"
As you can see, it has a level less than the previous structure. Now, to get all the targets that corresponde to a particular user, please use the following query:
val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val targetsRef = rootRef.child("targets").orderByChild("uid").equalTo(uid)
targetsRef.addListenerForSingleValueEvent(/* ... */);
So it's up to you to decide which one is better for you.
in the second case you get the Query fortargetsRef
. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?
– Morozov
Mar 26 at 14:21
1
Sure you need to create a user in the database. I didn't add theusers
node because of space but you definetely should add it.
– Alex Mamo
Mar 26 at 14:27
Hi Morozov! Is there everything alright, can I help you with other informations?
– Alex Mamo
Mar 27 at 9:45
Updated question. Can u check please? Maybe I should share my test project. in git as an example?
– Morozov
Mar 27 at 16:01
As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.
– Alex Mamo
Mar 27 at 16:17
|
show 6 more comments
Accodring to your comments and messages, you want to create targets for each user separately. Using your actual structure you have the users and targets separately. To solve this, I recommend you another database structure that looks like this:
Firebase-root
|
--- targets
|
--- uid
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Morozov"
To get all the targets that corresponde to a particular user, simply use the following query:
val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val uidRef = rootRef.child("targets").child(uid)
uidRef.addListenerForSingleValueEvent(/* ... */);
An alternative database structure might be:
Firebase-root
|
--- targets
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
| |
| --- uid: "VDMQ ... 0nw1"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Svetlana"
|
--- uid: "eluk ... PJu1"
As you can see, it has a level less than the previous structure. Now, to get all the targets that corresponde to a particular user, please use the following query:
val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val targetsRef = rootRef.child("targets").orderByChild("uid").equalTo(uid)
targetsRef.addListenerForSingleValueEvent(/* ... */);
So it's up to you to decide which one is better for you.
Accodring to your comments and messages, you want to create targets for each user separately. Using your actual structure you have the users and targets separately. To solve this, I recommend you another database structure that looks like this:
Firebase-root
|
--- targets
|
--- uid
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Morozov"
To get all the targets that corresponde to a particular user, simply use the following query:
val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val uidRef = rootRef.child("targets").child(uid)
uidRef.addListenerForSingleValueEvent(/* ... */);
An alternative database structure might be:
Firebase-root
|
--- targets
|
--- pushedId
| |
| --- description: "some description"
| |
| --- name: "Vadim"
| |
| --- uid: "VDMQ ... 0nw1"
|
--- pushedId
|
--- description: "another description"
|
--- name: "Svetlana"
|
--- uid: "eluk ... PJu1"
As you can see, it has a level less than the previous structure. Now, to get all the targets that corresponde to a particular user, please use the following query:
val uid = FirebaseAuth.getInstance().currentUser!!.uid
val rootRef = FirebaseDatabase.getInstance().getReference()
val targetsRef = rootRef.child("targets").orderByChild("uid").equalTo(uid)
targetsRef.addListenerForSingleValueEvent(/* ... */);
So it's up to you to decide which one is better for you.
answered Mar 26 at 13:42
Alex MamoAlex Mamo
53.3k9 gold badges36 silver badges72 bronze badges
53.3k9 gold badges36 silver badges72 bronze badges
in the second case you get the Query fortargetsRef
. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?
– Morozov
Mar 26 at 14:21
1
Sure you need to create a user in the database. I didn't add theusers
node because of space but you definetely should add it.
– Alex Mamo
Mar 26 at 14:27
Hi Morozov! Is there everything alright, can I help you with other informations?
– Alex Mamo
Mar 27 at 9:45
Updated question. Can u check please? Maybe I should share my test project. in git as an example?
– Morozov
Mar 27 at 16:01
As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.
– Alex Mamo
Mar 27 at 16:17
|
show 6 more comments
in the second case you get the Query fortargetsRef
. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?
– Morozov
Mar 26 at 14:21
1
Sure you need to create a user in the database. I didn't add theusers
node because of space but you definetely should add it.
– Alex Mamo
Mar 26 at 14:27
Hi Morozov! Is there everything alright, can I help you with other informations?
– Alex Mamo
Mar 27 at 9:45
Updated question. Can u check please? Maybe I should share my test project. in git as an example?
– Morozov
Mar 27 at 16:01
As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.
– Alex Mamo
Mar 27 at 16:17
in the second case you get the Query for
targetsRef
. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?– Morozov
Mar 26 at 14:21
in the second case you get the Query for
targetsRef
. In the first case, alas, still another structure is obtained. When authenticating, do I need to create a user in the database?– Morozov
Mar 26 at 14:21
1
1
Sure you need to create a user in the database. I didn't add the
users
node because of space but you definetely should add it.– Alex Mamo
Mar 26 at 14:27
Sure you need to create a user in the database. I didn't add the
users
node because of space but you definetely should add it.– Alex Mamo
Mar 26 at 14:27
Hi Morozov! Is there everything alright, can I help you with other informations?
– Alex Mamo
Mar 27 at 9:45
Hi Morozov! Is there everything alright, can I help you with other informations?
– Alex Mamo
Mar 27 at 9:45
Updated question. Can u check please? Maybe I should share my test project. in git as an example?
– Morozov
Mar 27 at 16:01
Updated question. Can u check please? Maybe I should share my test project. in git as an example?
– Morozov
Mar 27 at 16:01
As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.
– Alex Mamo
Mar 27 at 16:17
As you probably know, the rule in this community is to ask a question and if you get an answer, to solve your problem you should make your own attempt given the information in the answer and ask another question if something else comes up. So I rolled back to the previous version.
– Alex Mamo
Mar 27 at 16:17
|
show 6 more comments
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55356311%2fcreate-unique-notes-for-users%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You have to add a one layer on top of targets with the user-id key. Doing this every user have their own list of targets
– Murdok
Mar 26 at 11:59
@Murdok thx, I have updated the question, if not difficult, please see
– Morozov
Mar 26 at 12:08
Why are you using as the unique identifier a pushed id rather than the
uid
that is coming from the authentication process?– Alex Mamo
Mar 26 at 12:22
@AlexMamo But how can I use the one that comes from the authentication process?
– Morozov
Mar 26 at 12:25
@AlexMamo I so understand I can use it in
onActivityResult()
when I successfully pass authorization?– Morozov
Mar 26 at 12:27