I created an app with one list using Visual Studio 2013 and deployed it as a Sharepoint-hosted app to a Sharepoint 2013 Server on premise/farm.
The only field in the list was the default Title filed. When I add an item to the list, the details on created and modified by are as shown in Figure 1. Notice that it said ".. on behalf of ..". The user who added the item was not recorded in the details.
However, if I created an app using the OOTB custom list template and add an item to the list, the details on created and modified by are as shown in Figure 2. The user who added the item was reflected in the details.
Why is there a different and how to make the app I created using Visual Studio to behave the same as the one created from the template?

