Send notification for iOS with Firebase in Python
Use this code to send push notification to specific or group iOS devices.
pip3 install requests
- add
app_key
anddevice_token
from Firebase
For normal notification:
notification = PushNotification()
notification.send('Title', 'Body')
With subtitle:
notification = PushNotification()
notification.sendWithSubtitle('Title', 'Subtitle', 'Body')
Without sound:
notification = PushNotification()
notification.sendWithoutSound('Title', 'Body')
Enjoy 🙂