对于我的任务,您应该如何通过3G网络在iPhone设备之间进行通信? [英] For my task how should you communicate between iphone devices over the 3G network?

查看:54
本文介绍了对于我的任务,您应该如何通过3G网络在iPhone设备之间进行通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一种情况,我想通过3G网络在2-4个设备之间进行通信(它也应该可以在WLAN上工作,但是3G解决方案至关重要)。

I have a situation where I would like to communicate between 2-4 devices over the 3G network (it should also work over WLAN, but 3G solution is critical).

每台设备(除了一个设备)每隔约5秒钟会请求GPS定位,但是当该设备的用户取消此过程时,需要将此事件通知一个设备。

Every device (except one) asks for a GPS-location every ~5 seconds, but when this process is cancelled by the user of that device, one device needs to be informed of this event.

我当时以为一台设备可以充当服务器,其余设备可以作为客户端连接到服务器。在3G网络上有可能吗?

I was thinking that one device could act as a server, and the rest as clients that should connect to the server. Is this possible over the 3G network?

我也读过关于推送通知的信息,这是否有意义?

I've also read about push-notifications, is this relevant here? Can you receive notifications without disturbing the user with a popups etc?

还有其他方法吗?

基本上我可以在进入最终的套接字编程或类似方法之前,想使用苹果的标准解决方案(如果有的话)...

Basically I would like to use apple "standard" solutions (if there are any) before diving into eventual socket-programming or anything similar...

我想避免的是拥有网络服务器或类似的第三方解决方案,因为我不希望很多用户在最终解决方案中同时连接并从同一台外部服务器拉 ...

What I would like to avoid is to have a webserver or some similar "3rd-party" solution, because I don't want many users to simultaniously connect and "pull" from the same external server in a final solution...

更新:

基本上,我的应用程序将有成千上万的用户,如果发生偶发,则需要通知。同时发生约5秒钟,减轻负载并避免垃圾邮件的最佳解决方案是什么?

Basically my application will have thousands of users that will need to be informed if an even occurs. Also this happens simultanously ~5 second, what would be the best solution to reduce load and avoid spamming?

推荐答案


我当时以为一台设备可以充当服务器,其余则作为应连接到服务器的
客户端。在
3G网络上是否有可能?

I was thinking that one device could act as a server, and the rest as clients that should connect to the server. Is this possible over the 3G network?

它可以工作,但是拥有专用服务器将是更好的选择

It could work, but having a dedicated server would be a better choice


我也阅读了有关推送通知的信息,这是否与此相关?
您可以在不打扰
等弹出窗口的情况下接收通知吗?

I've also read about push-notifications, is this relevant here? Can you receive notifications without disturbing the user with a popups etc?

在您的情况下,因为您将需要一台与苹果通信的服务器

In your case no, since you will need a server to communicate with apple


基本上,我想使用苹果标准解决方案(如果有
任何),然后再进行最终的套接字编程或类似
的任何东西……

Basically I would like to use apple "standard" solutions (if there are any) before diving into eventual socket-programming or anything similar...

您可能应该重新考虑为此使用专用的远程服务器

There are no standard solution, other than you should probably rethink about using a dedicated remote server for this

这篇关于对于我的任务,您应该如何通过3G网络在iPhone设备之间进行通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆