I made the tutorial ToDo app but there is a huge issue. When I install the app from many device when i add note it has added on the other phone too. Is there any way to fix this?
I made the tutorial ToDo app but there is a huge issue. When I install the app from many device when i add note it has added on the other phone too. Is there any way to fix this?
Correct, any phone will see all the todo items. It's just how the tutorial is designed. For every user to see his/her todo items only -- you would need to add registration/sign in capability. When you save items, you would add the user id into the ACL column in the database. When you do a get, you will only load items for the currently signed in user.
Here is an example how to set the ACL column from JavaScript:
code
var acl = {};
acl[id]= { "read": true, "write": true };
return acl;
/code
where 'id' is the user id.
Can I make the javascript with loading the start screen with pop up for registration? Is it enough to complete the registration or i should create database for saving the users?
Hello! You would need to create DB to register users