Skip to content

Conversation

@devinmatte
Copy link
Member

Allow users to subscribe to notifications and store the subscriptions in our database

# OneSignal Config
ONESIGNAL_USER_AUTH_KEY = environ.get("PACKET_ONESIGNAL_USER_AUTH_KEY", None)
ONESIGNAL_APP_AUTH_KEY = environ.get("PACKET_ONESIGNAL_APP_AUTH_KEY", None)
ONESIGNAL_APP_ID = environ.get("PACKET_ONESIGNAL_APP_ID", "6eff123a-0852-4027-804e-723044756f00")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a test ID that only works on localhost:6969 for testing

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to note that in a line comment then. It'd help us track what is needed for local testing.


<!-- Push Notifications -->
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
<script>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As much as possible from this will be moved into a notifications.js file in Phase 2

@devinmatte devinmatte force-pushed the onesignal_notifications branch from 94d10c1 to 9945dfb Compare August 15, 2019 15:48
@devinmatte devinmatte force-pushed the onesignal_notifications branch from 9945dfb to ee28245 Compare August 15, 2019 15:52
# OneSignal Config
ONESIGNAL_USER_AUTH_KEY = environ.get("PACKET_ONESIGNAL_USER_AUTH_KEY", None)
ONESIGNAL_APP_AUTH_KEY = environ.get("PACKET_ONESIGNAL_APP_AUTH_KEY", None)
ONESIGNAL_APP_ID = environ.get("PACKET_ONESIGNAL_APP_ID", "6eff123a-0852-4027-804e-723044756f00")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to note that in a line comment then. It'd help us track what is needed for local testing.

@devinmatte devinmatte merged commit f6c2506 into ComputerScienceHouse:develop Aug 15, 2019
@devinmatte devinmatte deleted the onesignal_notifications branch August 15, 2019 16:10
@devinmatte devinmatte restored the onesignal_notifications branch August 15, 2019 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants