python - Connecting iOS app to Windows/Linux apps -


background:

i start development on mobile , desktop app. both connected local wifi network (no internet connection) , need communicate 1 another. @ outset targeting ios , windows 2 platforms, intention of adding linux, osx, , android support in order. desktop app largely database server/notification center receiving updates ios apps , sending out data other ios apps. there may front end desktop app, incorporate ios app if needed.

for moment want ios app automatically detect when on same network server , display data sent server (bonjour like).

as far see there 2 paths take implement this

  1. create native app each platform (windows, linux, osx). pro: ideas of having native apps performance , ease of install. con: know absolutely nothing windows or linux development.

  2. create app built using web technologies (probably python) , create easy use installer create local server out of desktop machine mobile apps can communicate with. pro: of development cross-platform , installer should easy enough port. con: if want add front-end server app not platform native , using css+html+javascript gui.

question:

my question how implement connection between ios app , server app in each circumstance.

  1. how receive , send notifications on local network.

  2. how connect server using nsurlconnection if not have static ip?


i hope clear. if not please ask , clarify.

update 09/06/2013

hopefully clear things up. need have desktop app manage database, app connect ios devices on local wireless network not connected internet. can either http protocol (preferably flask app) or using direct socket connection between apps , server. question of above 2 choices best? preference web-based app using python+flask, have no idea how connect ios app flask app running on local network out static ip. advice on appreciated.

without details of application or frameworks hard more vague , point in right direction. if have explored bonjour/zeroconf connect iphone server, i'd keep looking down path.

the first place pybonjour how broadcast server python. although there few issues in how configure on windows vs. mac vs. linux, slight. example, windows user need install bonjour windows, linux users need avahi, of can setup durin install.

secondly, @ bonjour documentation ios, easier built system , apis. here both server , client discoverable each other.

the last issue determining if want iphone connect server or vice versa, , how. these basic networking decisions more or less subjective.

since you've indicated preference web development, have iphone connect flask server , retrieve details server using http/html technologies.

with regards notifications, unless change in data client means client b absolutely needs know change in data, not worry. next time client b connects server, correct data can push through @ point rather worrying notification services. if client need know change, solution may regular old email advices them, , prompts them open app.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -