-
-
Notifications
You must be signed in to change notification settings - Fork 71
feat: Add support for notification push type widgets
#194
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -120,6 +120,7 @@ interface Aps { | |||||||||||||||||
| badge?: number | ||||||||||||||||||
| sound?: string | ApsSound | ||||||||||||||||||
| "content-available"?: undefined | 1 | ||||||||||||||||||
| "content-changed"?: undefined | true | ||||||||||||||||||
| "mutable-content"?: undefined | 1 | ||||||||||||||||||
| "url-args"?: string[] | ||||||||||||||||||
| category?: string | ||||||||||||||||||
|
|
@@ -267,7 +268,7 @@ export class MultiProvider extends EventEmitter { | |||||||||||||||||
| shutdown(callback?: () => void): Promise<void>; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| export type NotificationPushType = 'background' | 'alert' | 'voip' | 'pushtotalk' | 'liveactivity' | 'location' | 'complication' | 'fileprovider' | 'mdm'; | ||||||||||||||||||
| export type NotificationPushType = 'background' | 'alert' | 'voip' | 'pushtotalk' | 'liveactivity' | 'location' | 'complication' | 'fileprovider' | 'mdm' | 'widgets'; | ||||||||||||||||||
|
|
||||||||||||||||||
| export type ChannelAction = 'create' | 'read' | 'readAll' | 'delete'; | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
@@ -366,6 +367,10 @@ export class Notification { | |||||||||||||||||
| * | ||||||||||||||||||
| */ | ||||||||||||||||||
| public mutableContent: boolean; | ||||||||||||||||||
| /** | ||||||||||||||||||
| * Setting this to true will specify "content-changed" in the payload when it is compiled | ||||||||||||||||||
| */ | ||||||||||||||||||
| public contentChanged: boolean; | ||||||||||||||||||
|
Comment on lines
+370
to
+373
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify declaration/runtime/test contract for contentChanged
rg -n "contentChanged|content-changed" index.d.ts lib/notification/apsProperties.js test/notification/apsProperties.js -C3Repository: parse-community/node-apn Length of output: 3811 Widen Line 373 declares Proposed typing fix- public contentChanged: boolean;
+ public contentChanged: boolean | 1 | undefined;📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That wouldn't be an unreasonable type declaration, but it doesn't match how other properties (such as There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
(^_^) ✏️ Learnings added
|
||||||||||||||||||
| /** | ||||||||||||||||||
| * The value to specify for the `mdm` field where applicable. | ||||||||||||||||||
| */ | ||||||||||||||||||
|
|
||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.