James Turbitt
- Forum posts: 1
Jun 18, 2013, 12:04:59 AM via Website
Jun 18, 2013 12:04:59 AM via Website
I am new to Android, but I have been programming C# winforms for nearly 10 years, but I have never done anything like this before.
I want to make an app which will provide a messaging service from a website but I am not exactly sure which is the best way to go about it.
The app will need to report to the website periodically so that it knows that it is online and people can send messages to the mobile device through a web page.
To achieve the mobile device to website "heart beat" I thought that I could access a webpage using query string which would report a username so that the website could log the last time the mobile device communicated. Would this be the best way?
The next problem is the website to mobile device communications. My options I guess are to send the data directly to the IP address of the mobile device using TCP IP. To do this I would need to report the IP address to the website when the IP address changes. This could be done with a query string again. Alternatively I could return an XML file containing the new messages when the heart beat is sent, but the messages would then be delayed until the next heart beat is sent. Ideally I would like the message to be sent immediately. Are there any issues with sending data to an IP address on a mobile network? How do I find out what my IP address is?
I would like the solution to be reliable and secure.
I would appreciate any ideas and comments!
Thanks in advance
I want to make an app which will provide a messaging service from a website but I am not exactly sure which is the best way to go about it.
The app will need to report to the website periodically so that it knows that it is online and people can send messages to the mobile device through a web page.
To achieve the mobile device to website "heart beat" I thought that I could access a webpage using query string which would report a username so that the website could log the last time the mobile device communicated. Would this be the best way?
The next problem is the website to mobile device communications. My options I guess are to send the data directly to the IP address of the mobile device using TCP IP. To do this I would need to report the IP address to the website when the IP address changes. This could be done with a query string again. Alternatively I could return an XML file containing the new messages when the heart beat is sent, but the messages would then be delayed until the next heart beat is sent. Ideally I would like the message to be sent immediately. Are there any issues with sending data to an IP address on a mobile network? How do I find out what my IP address is?
I would like the solution to be reliable and secure.
I would appreciate any ideas and comments!
Thanks in advance
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.