-
-
Notifications
You must be signed in to change notification settings - Fork 80
CU-868f7hkrj Fixed Novu provider for ios and bugfix for voice. #237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| namespace Resgrid.Model.Providers | ||
| using System.Threading.Tasks; | ||
|
|
||
| namespace Resgrid.Model.Providers | ||
| { | ||
| public interface IOutboundVoiceProvider | ||
| { | ||
| void CommunicateCall(string phoneNumber, UserProfile profile, Call call); | ||
| Task<bool> CommunicateCallAsync(string phoneNumber, UserProfile profile, Call call); | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify APNS override shape matches Novu’s schema
The overrides.apns block sets badge/sound/category directly. Novu’s schema for APNS overrides may expect an aps payload wrapper (e.g., overrides.apns.payload.aps.{badge,sound,category}) and custom fields (eventCode/type) outside aps. If this shape is off, APNS may ignore the fields.
Would you verify against Novu’s overrides schema and example for APNS?
🌐 Web query:
💡 Result:
The expected JSON schema for the
overrides.apnspayload in Novu's v1 events/trigger API should closely follow the ApnsConfig structure used by Firebase Cloud Messaging (FCM), as Novu internally uses this format for push overrides[1][3]. This allows you to specify detailed APNs (Apple Push Notification Service) payload options, such as badge, sound (with critical and volume), and category.Example JSON Structure
{ "overrides": { "apns": { "payload": { "aps": { "badge": 5, "sound": { "critical": 1, "name": "default", "volume": 0.8 }, "category": "MY_CATEGORY" } } } } }Key fields explanation:
badge
Integer. Specifies the badge number for the app icon.
sound
Object. Includes:
"name": String, the sound file name ("default" or custom)."critical": Integer (1 for critical alert, 0 for non-critical)."volume": Float (0.0 to 1.0).category
String. Used for grouping or to enable specific notification actions.
Schema Reference
The schema should match:
{ "overrides": { "apns": { "payload": { "aps": { "badge": <integer>, "sound": { "critical": <integer>, // 0 or 1 "name": <string>, "volume": <float> // 0.0 through 1.0 }, "category": <string> } } } } }alert,thread-id, etc.) can also be provided in theapsdictionary.Notes
For further customizations or to validate your payload, refer to the ApnsConfig documentation[3].
Citations:
Adjust APNS override to include the
payload.apswrapperThe current
apnsobject is not nested underpayload.apsas required by Novu’s schema. Badge, sound, and category must live insidepayload.aps, with custom fields (type,eventCode) alongsideaps.Please update in Providers/Resgrid.Providers.Messaging/NovuProvider.cs (lines 259–271):
This aligns with the expected JSON: