Skip to content

🐛 Bug Report: Push notification stuck on processing #8601

Closed

Description

@docimin

👟 Reproduction steps

Put a string in the badge type of a messaging.createPush, like so:

    await messaging.createPush(
      ID.unique(),
      `New follower!`,
      `${userData.displayName || "Someone"} is now following you!`,
      [],
      [body.followerId],
      [],
      {
        type: "newFollower",
        userId: body.userId,
      },
      undefined,
      undefined,
      undefined,
      "../sounds/11L-soft_alert-41374194.mp3",
      undefined,
      "testTag",
      "testBadge", <-- This is the badge
    );

If you add the badge part with the string, the push notification stays on "processing":
image

👍 Expected behavior

Should properly send the push notification

👎 Actual Behavior

Stays on processing and doesn't send the notification

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

Node-appwrite version 13 (for 1.5)

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. added
    bug
    on Aug 31, 2024
  2. DH-555 commented on Oct 24, 2024

    @DH-555
    Contributor

    Hello! Is this happening in Appwrite cloud? Or self-hosting?
    What push notification provider are you using?
    Also, what platform?

  3. added
    question
    on Oct 24, 2024
  4. docimin commented on Oct 24, 2024

    @docimin
    ContributorAuthor

    I have only tested this in Cloud, but it seems like a general Appwrite issue probably?

    What push notification provider are you using?

    I am using FCM for Push Notifications

    Also, what platform?

    Unsure what you mean, but I did the following:

    • Create a user which has a correct target (iOS using FCM)
    • Create a push notification api request via REST API, but included the badge attribute (filled in)
    • Notification stuck on processing

    Removing the badge attribute, as said in the issue, fixed it and successfully sent it through.

  5. DH-555 commented on Oct 24, 2024

    @DH-555
    Contributor

    As we talked through Discord, the error seems to appear when specifying the Badge field that is exclusive for APN push notifications in FCM.

    It should show failed and the reason (badge not supported for the provider) instead of being stuck in pending.

  6. added
    product / messaging
    and removed
    question
    on Oct 24, 2024
  7. karan-963 commented on Aug 19, 2026

    @karan-963

    Hi team, this issue appears to be resolved by PR #9060 #9060 (badge typing & parameter validation) and PR #13091 #13091 (handling queue job failures to prevent messages getting stranded in processing). Could this issue be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugproduct / messaging

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions