How can I get two apps to communicate with each other.

Hi, sorry if some of this post seems familiar, I posted a question in a different forum relating to the same apps.

I am writing two apps for a client (to be available on both Android and Apple), they are;

Client app – the client can record information about products and submit them. The client will require a username and password that will be issued by me. I have more of less finished this app, at the moment I am storing the data in a local table, although I am thinking I might move to a sqlite DB.

Customer app – customers will receive product information and then have the option to place an order, the client will then be notified of any order. The client will have the option of confirming or denying any new customers.

I am wondering how I would go about passing data between the two apps, given that both apps need to allow for sending and receiving of data from the other app. I have a server and thought about uploading a JSON file with product information, but this seems inefficient as I would need to upload the file again as products are added (maybe I am wrong) and similarly the client would need to download the whole file again to get updates.

Can someone point me in the right direction please?

Thanks for your help. [import]uid: 184705 topic_id: 34384 reply_id: 334384[/import]

Sounds like you need an admin website with a webservice providing data to the mobile app. If you have written server side code before this should not be a problem. [import]uid: 8271 topic_id: 34384 reply_id: 136660[/import]

The best way is to have a database server on some webhost somewhere. Your JSON upload idea is on the right track, but you don’t want to upload the whole database every time, but just want to upload new things as they are added. In other words a client adds a new item, upload that item to the server. You probably would want to have it work when there is no network connection, so you would save all the new added items to upload when you get connectivity back.

Then in your other app, you download the new items. You probably want to have a date/time added field in the database and have your app keep track of when it updated last so you can structure your database query on the server to fetch new items since a given date.

[import]uid: 199310 topic_id: 34384 reply_id: 136673[/import]

Thanks… I have made a start and I can see how it works, thanks for setting me in the right direction…
[import]uid: 184705 topic_id: 34384 reply_id: 136810[/import]

Sounds like you need an admin website with a webservice providing data to the mobile app. If you have written server side code before this should not be a problem. [import]uid: 8271 topic_id: 34384 reply_id: 136660[/import]

The best way is to have a database server on some webhost somewhere. Your JSON upload idea is on the right track, but you don’t want to upload the whole database every time, but just want to upload new things as they are added. In other words a client adds a new item, upload that item to the server. You probably would want to have it work when there is no network connection, so you would save all the new added items to upload when you get connectivity back.

Then in your other app, you download the new items. You probably want to have a date/time added field in the database and have your app keep track of when it updated last so you can structure your database query on the server to fetch new items since a given date.

[import]uid: 199310 topic_id: 34384 reply_id: 136673[/import]

Thanks… I have made a start and I can see how it works, thanks for setting me in the right direction…
[import]uid: 184705 topic_id: 34384 reply_id: 136810[/import]