I've created a SharePoint App which is essentially a list, with some Remote Event Receivers hooked up to certain events. There are no pages in this app, the start page is set to access the list immediately. Also, it's an auto-hosted App.
Now I've created a second App that I would like to access the list data from the first App in. In this second, also auto-hosted App, I've created a Host Web context & tried to access my first App's list as follows:
var list = clientContext.Web.Lists.GetByTitle("App_list_title");
Not surprisingly, it doesn't find the list. I realize there's the divide between the App Web & Host Web & by my understanding the list I've created in App 1 exists inside that app's App Web. Hence it isn't in the Web.Lists collection.
My question is, is there a way to surface the list in App 1 so that it can be accessed from other apps, or is there a different way by which I can access this list data?
Having only just started out with SharePoint, any help would be greatly appreciated.
EDIT
After a few days of putting this aside, I've now come back to it & am still having trouble getting my app to work the way I want. I re-read my question & it might not be clear what I'm trying to achieve.
I want to create an app, which contains a list, to behave like a standard SharePoint list. So my app should be contained in the Web.Lists
collection, come up when adding workflows to list events etc. Is something like this possible & if so, how does one go about doing it?