简体   繁体   中英

How I send iOS push notifications from my python server?

I would like to push alerts from my python server (for example, some task has been completed or failed, etc) to my iPhone, and I was wondering what the process would entail.

  1. Do I need to open an Apple Developers Account?
  2. Do I need to install an app on the iOS device to receive these alerts?
  3. Is there a mechanism such that additional members of my team could sign-up for these alerts? How would I register myself and my team members?
  4. Is there a simple way of sending these alerts to Android devices?

I came across this python library: https://github.com/djacobs/PyAPNs but I'm missing the big picture. Is there a blog post or some additional documentation. I thought about using Prowl, but it seems like there should be a more direct way. Thanks!

You might try looking over the following:

Push Notifications for Developers

and

Push Notification Programming Guide

Quick answer to your question, for detail you may found in reference provided by @valheru

  1. Do I need to open an Apple Developers Account?

Yes, for

  1. certificate for your server that send out notification to apns
  2. provision profile for developing app that receive notification
  3. binding app to certificate
  1. Do I need to install an app on the iOS device to receive these alerts?

Yes, each app requires a unique certificate.

  1. Is there a mechanism such that additional members of my team could sign-up for these alerts? How would I register myself and my team members?

Each member can install the same app binded to the certificate that you use to send notification on your server, after the app register device token from apns, and pass to your server, your server can specify every device token to send notification.

  1. Is there a simple way of sending these alerts to Android devices?

check https://github.com/geeknam/python-gcm

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