Wednesday, March 4, 2026
HomeiOS Developmentis it doable to make use of django-push-notifications for each android/ios with...

is it doable to make use of django-push-notifications for each android/ios with out apns? (if I’ve each apps in firebase)


I wish to use django-push-notifications library for push notifications. My cell app half configured firebase for each android and ios. In library’s documentations they separated logic and configuration of gcm and apns units. Can I exploit simply GCMDevice for each android and ios units (to save lots of them, ship message) as it’s already configured in firebase? Or ought to I configure apns in django additionally as it’s talked about in documentation

from firebase_admin import auth

# Initialize the default app (both use `GOOGLE_APPLICATION_CREDENTIALS` setting variable, or cross a firebase_admin.credentials.Certificates occasion)
default_app = firebase_admin.initialize_app()

PUSH_NOTIFICATIONS_SETTINGS = {
        "APNS_CERTIFICATE": "/path/to/your/certificates.pem",
        "APNS_TOPIC": "com.instance.push_test",
        "WNS_PACKAGE_SECURITY_ID": "[your package security id, e.g: 'ms-app://e-3-4-6234...']",
        "WNS_SECRET_KEY": "[your app secret key, e.g.: 'KDiejnLKDUWodsjmewuSZkk']",
        "WP_PRIVATE_KEY": "/path/to/your/personal.pem",
        "WP_CLAIMS": {'sub': "mailto:[email protected]"}
}

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments