简体   繁体   中英

how to send notification if the user is connected my open wifi network in iPhone

I want to send a prompt (notification) to an iPhone device which is connected to my open wifi network?

What is the correct approach to achieve this?

You will need an APN server, and push those notifications through Apple's notification gateways.

You can make your own or use a SaaS like urban airship .

Alternatively, make a server on your computer and connect to it from the iPhone. Use websockets, when an event happens on the server make a local notification on the iPhone.

Local notifications are allowed on iOS but you might have trouble keeping the websocket connection to your server when the app is in the background.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM