Skip to content
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

Can't send push to Android and iOS when using alert: {... in data #212

Open
1 task done
adammlevy opened this issue Aug 23, 2022 · 3 comments
Open
1 task done

Can't send push to Android and iOS when using alert: {... in data #212

adammlevy opened this issue Aug 23, 2022 · 3 comments

Comments

@adammlevy
Copy link

adammlevy commented Aug 23, 2022

Issue Description

I recently changed the push data payload so that a subtitle can show up on iOS devices but that change has caused the JSON payload to show up in the push on Android devices. This is how I'm sending the push:

Parse.Push.send({
            where: mainQuery,
            data: {
                alert: {
                    title : pushMessage.title,
                    subtitle: pushMessage.subtitle,
                    body: pushMessage.message
                },
                sound: pushMessage.sound,
                reportType: pushMessage.reportType,
                uri: pushMessage.uri,
                payload: pushMessage.payload	
            }
            }, {
            useMasterKey: true,
            success: function() {
               
            },
            error: function(error) {
            
                
            }
        });

What param to I have to pass in order to display the push properly on Android and iOS.

Steps to reproduce

Send a push to iOS and Android devices using the above format

Actual Outcome

Push gets properly sent to iOS properly but not Android

Expected Outcome

Push gets sent properly to both iOS and Android

Environment

?

Client

  • Parse Server Push Adapter version: FILL_THIS_OUT

Server

  • Parse Server version: 2.8.4
  • Operating system: Ubuntu
  • Local or remote host Digital Ocean

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 3.0.15
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Local

Client

  • Parse JS SDK version: 1.11.0

Logs

None included

@parse-github-assistant
Copy link

parse-github-assistant bot commented Aug 23, 2022

Thanks for opening this issue!

  • ❌ Please edit your post and use the provided template when creating a new issue. This helps everyone to understand your post better and asks for essential information to quicker review the issue.

@mman
Copy link
Contributor

mman commented May 6, 2024

I believe this should be addressed by #238.

@mman
Copy link
Contributor

mman commented May 15, 2024

@adammlevy Please try https://github.com/parse-community/parse-server-push-adapter/releases/tag/6.1.1 or newer, your issue should be addressed there, and close if appropriate...

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

No branches or pull requests

3 participants