For my task, how should you communicate between iphone devices over a 3G network?

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

Each device (except one) requests a GPS location every ~ 5 seconds, but when this user cancels this process, one device should be informed about this event.

I thought that one device can act as a server, and the rest can act as clients, which should connect to the server. Is this possible on a 3G network?

I also read about push notifications, is this relevant here? Can you receive notifications without breaking users through pop-ups, etc.?

Are there other ways?

Basically, I would like to use standard "apple" solutions (if any) before diving into possible socket programming or something like that ...

What I would like to avoid is to have a web server or some kind of "third-party" solution, because I do not want many users to simultaneously connect and "pull" from the same external server in the final solution. .

UPDATE:

Basically, my application will have thousands of users who need to be informed about what is happening. It also happens at the same time ~ 5 seconds, what would be the best solution to reduce the load and prevent spam?

0
source share
4 answers

, , , . 3G-?

,

push-, ? ..?

, apple

, "" ( ) - ...

, , , ,

+1

iPhones 3G. 3G, , . , bluetooth, , .

, . IP- (, , ) , . .

0

, :

, , , . 3G-?

, iPhone/iPad, 3G, -, . ( , Wi-Fi, , .)

push-, ? ..?

Push ( , ) -, , , ,

?

3G , Apple, .

"" ( ) - ...

Diving will not help you. Even using low-level socket programming, you won’t be able to run the server on your iPhone, accessible over 3G, without an external website to help establish a connection.

0
source

You can try using GameCenter. The mechanism of network games in the Game Center allows you to connect up to four players without third-party solutions.

0
source

Source: https://habr.com/ru/post/1682025/


All Articles