package
0.0.0-20240803225159-f361c4d7dd45
Repository: https://github.com/bradpurchase/grocerytime-backend.git
Documentation: pkg.go.dev

# Functions

ApnsCertificate handles finding the proper certificate depending on app scheme and envrionment.
ApnsCertificatePassword determines the credential for the apns cert password depending on environment.
DeviceTokensForUser fetches all the device tokens stored for a user by ID.
ItemsAdded sends a push notification to store users about a new item.
MealRemoved sends a push notification about a meal being removed from a meal plan.
MealUpdated sends a push notification about a meal being updated in a meal plan.
MealUserTokens fetches apns device tokens for all meal users.
NewMeal sends a push notification about a new meal.
Send sends a push notification.
SetNotificationPayload sets the APNS payload for the.
SetNotificationTopic determines the correct topic for the notification This should match the bundle ID depending on environment i.e.
StoreDeviceToken creates a Device record to store device tokens for iOS push notifications.
StoreUserTokens fetches apns device tokens for all store users associated with the item provided, excluding for those users who have disabled notifications in store user preference settings.
UserJoinedStore sends a push notification when a user joins a store via share code.