Skip to content

Commit 36f2b99

Browse files
committed
Merge branch 'master' of github.com:parse-community/parse-server-push-adapter into moumouls/remove-gcm
# Conflicts: # package-lock.json # package.json # spec/ParsePushAdapter.spec.js # src/ParsePushAdapter.js
2 parents e378038 + 24c73af commit 36f2b99

File tree

14 files changed

+3035
-2527
lines changed

14 files changed

+3035
-2527
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,12 @@ jobs:
4646
run: npm ci
4747
- name: Run tests
4848
run: npm run test
49-
- name: Code coverage
50-
run: bash <(curl -s https://codecov.io/bash)
49+
- name: Upload code coverage
50+
uses: codecov/codecov-action@v4
51+
with:
52+
# Set to `true` once codecov token bug is fixed; https://github.com/parse-community/parse-server/issues/9129
53+
fail_ci_if_error: false
54+
token: ${{ secrets.CODECOV_TOKEN }}
55+
concurrency:
56+
group: ${{ github.workflow }}-${{ github.ref }}
57+
cancel-in-progress: true

.github/workflows/release-automated.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,14 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout repository
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v4
1111
with:
1212
persist-credentials: false
1313
- name: Setup Node
14-
uses: actions/setup-node@v2
14+
uses: actions/setup-node@v4
1515
with:
1616
node-version: 20
17-
- name: Cache Node.js modules
18-
uses: actions/cache@v2
19-
with:
20-
path: ~/.npm
21-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22-
restore-keys: |
23-
${{ runner.os }}-node-
17+
cache: npm
2418
- name: Install dependencies
2519
run: npm ci
2620
- name: Run semantic-release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ node_modules
4040

4141
# Optional eslint cache
4242
.eslintcache
43+
.vscode/launch.json

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,38 @@
1+
# [6.11.0](https://github.com/parse-community/parse-server-push-adapter/compare/6.10.0...6.11.0) (2025-03-16)
2+
3+
4+
### Features
5+
6+
* Bump @parse/node-apn from 6.4.3 to 6.5.0 ([#382](https://github.com/parse-community/parse-server-push-adapter/issues/382)) ([3995754](https://github.com/parse-community/parse-server-push-adapter/commit/3995754705614e00d8bfdea47333986b0b88b7cc))
7+
8+
# [6.10.0](https://github.com/parse-community/parse-server-push-adapter/compare/6.9.1...6.10.0) (2025-01-18)
9+
10+
11+
### Features
12+
13+
* Add support for watchOS push notifications ([#360](https://github.com/parse-community/parse-server-push-adapter/issues/360)) ([97f14ca](https://github.com/parse-community/parse-server-push-adapter/commit/97f14cab1474657660464e5450e8dfdbe0650809))
14+
15+
## [6.9.1](https://github.com/parse-community/parse-server-push-adapter/compare/6.9.0...6.9.1) (2025-01-01)
16+
17+
18+
### Bug Fixes
19+
20+
* APN notification topic not composed based on push type ([#347](https://github.com/parse-community/parse-server-push-adapter/issues/347)) ([9905c34](https://github.com/parse-community/parse-server-push-adapter/commit/9905c340554cbed67f594dc37d6704169d40d8e1))
21+
22+
# [6.9.0](https://github.com/parse-community/parse-server-push-adapter/compare/6.8.0...6.9.0) (2024-12-30)
23+
24+
25+
### Features
26+
27+
* Update node-apn from 6.2.1 to 6.3.0 ([#349](https://github.com/parse-community/parse-server-push-adapter/issues/349)) ([9697842](https://github.com/parse-community/parse-server-push-adapter/commit/9697842ecf58e7993be6fda6cb2760446c4d30a3))
28+
29+
# [6.8.0](https://github.com/parse-community/parse-server-push-adapter/compare/6.7.1...6.8.0) (2024-12-14)
30+
31+
32+
### Features
33+
34+
* Add FCM option `resolveUnhandledClientError` to resolve or reject push promise on FCM server response GOAWAY ([#341](https://github.com/parse-community/parse-server-push-adapter/issues/341)) ([6d72f8a](https://github.com/parse-community/parse-server-push-adapter/commit/6d72f8abe7b4ff47f8884fc01b77365c26002327))
35+
136
## [6.7.1](https://github.com/parse-community/parse-server-push-adapter/compare/6.7.0...6.7.1) (2024-11-19)
237

338

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Parse Server Push Adapter <!-- omit in toc -->
22

3-
[![Build Status](https://github.com/parse-community/parse-server-push-adapter/workflows/ci/badge.svg?branch=master)](https://github.com/parse-community/parse-server-push-adapter/actions?query=workflow%3Aci+branch%3Amaster)
3+
[![Build Status](https://github.com/parse-community/parse-server-push-adapter/actions/workflows/ci.yml/badge.svg)](https://github.com/parse-community/parse-server-push-adapter/actions/workflows/ci.yml)
44
[![Snyk Badge](https://snyk.io/test/github/parse-community/parse-server-push-adapter/badge.svg)](https://snyk.io/test/github/parse-community/parse-server-push-adapter)
55
[![Coverage](https://img.shields.io/codecov/c/github/parse-community/parse-server-push-adapter/master.svg)](https://codecov.io/github/parse-community/parse-server-push-adapter?branch=master)
66
[![auto-release](https://img.shields.io/badge/%F0%9F%9A%80-auto--release-9e34eb.svg)](https://github.com/parse-community/parse-server-push-adapter/releases)
@@ -23,6 +23,7 @@ The official Push Notification adapter for Parse Server. See [Parse Server Push
2323
- [Google Cloud Service Account Key](#google-cloud-service-account-key)
2424
- [Migration to FCM HTTP v1 API (June 2024)](#migration-to-fcm-http-v1-api-june-2024)
2525
- [HTTP/1.1 Legacy Option](#http11-legacy-option)
26+
- [Firebase Client Error](#firebase-client-error)
2627
- [Expo Push Options](#expo-push-options)
2728
- [Bundled with Parse Server](#bundled-with-parse-server)
2829
- [Logging](#logging)
@@ -71,10 +72,11 @@ Parse Server Push Adapter currently supports these types of Apple ecosystems:
7172
- `ios`: iPhone, iPad, and iPod touch apps
7273
- `osx`: macOS, and macCatalyst apps
7374
- `tvos`: tvOS apps
75+
- `watchos`: watchOS apps
7476

75-
Delivering push notifications to Apple devices can be done either via Apple Push Notification Service (APNS), or via Firebase Cloud Messaging (FMC). Note that each category of Apple devices require their own configuration section:
77+
Push notifications can be delivered to Apple devices either via Apple Push Notification Service (APNS) or Firebase Cloud Messaging (FMC). Note that each category of Apple devices requires their own configuration section:
7678

77-
- APNS requires a private key that can be downloaded from the Apple Developer Center at https://developer.apple.com/account under _Certificates > Identifiers & Profiles._ The adapter options also require the app ID and team ID which can be found there.
79+
- APNS requires a private key that can be downloaded from the Apple Developer Center at https://developer.apple.com/account under _Certificates > Identifiers & Profiles._ The adapter options also require the app ID and team ID, which can be found there.
7880
- FCM requires a private key that can be downloaded from the Firebase Console at https://console.firebase.google.com in your project under _Settings > Cloud Messaging._
7981

8082
Example options:
@@ -158,6 +160,15 @@ android: {
158160
}
159161
```
160162

163+
#### Firebase Client Error
164+
165+
Occasionally, errors within the Firebase Cloud Messaging (FCM) client may not be managed internally and are instead passed to the Parse Server Push Adapter. These errors can occur, for instance, due to unhandled FCM server connection issues.
166+
167+
- `resolveUnhandledClientError: true`: Logs the error and gracefully resolves it, ensuring that push sending does not result in a failure.
168+
- `resolveUnhandledClientError: false`: Causes push sending to fail, returning a `Parse.Error.OTHER_CAUSE` with error details that can be parsed to handle it accordingly. This is the default.
169+
170+
In both cases, detailed error logs are recorded in the Parse Server logs for debugging purposes.
171+
161172
### Expo Push Options
162173

163174
Example options:

0 commit comments

Comments
 (0)