ToDo app
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?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
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
Max, where does your code go?
In mapping, for acl column
No acl column
Create the parameter in Response tab.
How. Sorry but this is not obvious, there are many places to put this code. Can you please be specific. I cannot ad parameters to the Response Tab.
Ok, wow I stumbled across it