jazzband / django-push-notifications

Send push notifications to mobile devices through GCM or APNS in Django.
MIT License
2.24k stars 609 forks source link

can i use firebase for iOS instead of APNS? #611

Closed Bashar closed 3 years ago

Bashar commented 3 years ago

I tried to comment out APNS parts from PUSH_NOTIFICATIONS_SETTINGS but it gave the error

You need to setup PUSH_NOTIFICATIONS_SETTINGS properly to send messages

is it possible to use firebase for IOS instead of APNS?

AxelHgt commented 3 years ago

Hi, Yes you need to setup settings to make it work. And the APNS part is not required.

Example:

PUSH_NOTIFICATIONS_SETTINGS = {
    'USER_MODEL': 'users.User',
    'FCM_API_KEY': os.environ.get('FCM_KEY'),
    'UPDATE_ON_DUPLICATE_REG_ID': True
}
ayushin commented 3 years ago

We do this:

https://github.com/jazzband/django-push-notifications/pull/615