I am sending some data to php which stores the data in database. Another webpage will retreive data from database, this webpage will also contain a textbox and a button, upon clicking the button any data entered in the textbox should be send back to the same ipad.
The question is . . how to send back the data from textbox to ipad?
I am using HTTP POST method to send data to php from ipad.
I am sending some data to php which stores the data in database. Another
Share
You somehow need to establish a connection between your webserver (i presume you are using an external one not running on the iPad). These are many different ways to do this some of them are:
To do so you would have to open a socket in php if your webserver allows it and send a push notification to Apple’s server. You can find a good introduction here: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html
UPDATE:
I didn’t mention this earlier but if you don’t want to write the apns comunication yourself there is a good open source php framework for that: http://code.google.com/p/apns-php/