Skip to content

Add new push message parameters - #9060

Merged
abnegate merged 28 commits into
1.6.xfrom
feat-apns-content-available
Jan 16, 2025
Merged

abnegate merged 28 commits into
1.6.xfrom
feat-apns-content-available

Conversation

@abnegate

@abnegate abnegate commented Dec 3, 2024 •

Copy link
Copy Markdown
Member

What does this PR do?

Adds new push flags:

  • contentAvailable: (iOS only) when set, notifications will wake up the app in the background to deliver the notification
  • critical: (iOS only) when set, tries to mark notification as "critical" to ignore silent/do not disturb settings. Requires app to be granted the critical notification entitlement by Apple.
  • priority: Let's you set either normal or high priority for notifications. Normal priority will deliver at the most convenient time depending on multiple factors

Fixes: #8854

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)

Related PRs and Issues

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@github-actions

github-actions Bot commented Dec 3, 2024 •

Copy link
Copy Markdown

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
pyc 3.12.7-r0 CVE-2024-12254 HIGH
python3 3.12.7-r0 CVE-2024-12254 HIGH
python3-pyc 3.12.7-r0 CVE-2024-12254 HIGH
python3-pycache-pyc0 3.12.7-r0 CVE-2024-12254 HIGH
golang.org/x/crypto v0.26.0 CVE-2024-45337 CRITICAL
golang.org/x/net v0.28.0 CVE-2024-45338 HIGH

Source Code Scan Results

🎉 No vulnerabilities found!

@pkg-pr-new

pkg-pr-new Bot commented Dec 3, 2024 •

Copy link
Copy Markdown

Open in Stackblitz

npm i https://pkg.pr.new/appwrite/appwrite/@appwrite.io/console@9060

commit: c0a0f10

@github-actions

github-actions Bot commented Dec 3, 2024 •

Copy link
Copy Markdown

✨ Benchmark results

  • Requests per second: 996
  • Requests with 200 status code: 179,390
  • P99 latency: 0.184240596

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 996 1,698
200 179,390 305,622
P99 0.184240596 0.069823632

@abnegate
abnegate changed the base branch from main to 1.6.x December 3, 2024 07:46
Comment thread app/controllers/api/messaging.php Resolved
Comment thread app/controllers/api/messaging.php Resolved
Comment thread app/controllers/api/messaging.php Resolved
@abnegate
abnegate requested a review from stnguyen90 December 5, 2024 07:25

@lohanidamodar lohanidamodar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. let's release the library first and upgrade.

@abnegate

abnegate commented Dec 9, 2024

Copy link
Copy Markdown
Member Author

Blocked by Apple developer account needed to properly test background notifications

@abnegate abnegate changed the title Feat apns content available Add new push message parameters Dec 10, 2024
@afonsoingles afonsoingles mentioned this pull request Jan 10, 2025
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

🐛 Bug Report: Push Notification for iOS badge is string, but should be number

3 participants