Skip to content

Push to Android won't works #3385

@luishscosta

Description

@luishscosta

I'm configure my own parse-server and everything works fine, but the push to android won't works.

Vebose log:

[13278] parse-server running on http://177.67.112.173:1337/parse verbose: REQUEST for [POST] /parse/push: { "data": { "alert": "test" }, "where": { "deviceToken": "APA91bH-BeIb8LN-ry2P7wLGpCwJUPKSV8r1nNDqwK_mlf-peMDdIUIQpoYwvgCi3x6fX0KZstKrN3goHggCx8QzgbY9Dpnl9SEMZzK6mS-qTYKQOKGtaV1ZRKt64CbRrkH0KeJDZYAQ", "deviceType": { "$in": [ "android" ] } } } method=POST, url=/parse/push, host=177.67.112.173:1337, connection=close, content-length=433, origin=http://parse.tray.com.br, user-agent=Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36, content-type=text/plain, accept=*/*, referer=http://parse.tray.com.br/apps/TrayCommerce/push/new, accept-encoding=gzip, deflate, br, accept-language=en-US,en;q=0.8,pt;q=0.6, alert=test, deviceToken=APA91bH-BeIb8LN-ry2P7wLGpCwJUPKSV8r1nNDqwK_mlf-peMDdIUIQpoYwvgCi3x6fX0KZstKrN3goHggCx8QzgbY9Dpnl9SEMZzK6mS-qTYKQOKGtaV1ZRKt64CbRrkH0KeJDZYAQ, $in=[android] verbose: RESPONSE from [POST] /parse/push: { "headers": { "X-Parse-Push-Status-Id": "zmDjajdFxQ" }, "response": { "result": true } } X-Parse-Push-Status-Id=zmDjajdFxQ, result=true verbose: sending push to 1 installations verbose: sent push! 0 success, 1 failures

Start Server:

/bin/parse-server --appId APPID --masterKey MASTERKEY --databaseURI mongodb://IP/parse --serverURL http://IP:1337/parse --cloud ./cloud/main.js --appName Commerce --push '{"android": { "senderId": "SENDERID","apiKey": "APIKEY"},"ios": {"pfx": "/etc/parse/ios.p12","passphrase": "","bundleId": "br.com.tray","production": true}}' --verbose 1

I get the SENDERID and APIKEY from Google Firebase. If I put the same data into parse.com, this feature works fine.

PS: IOs push is working

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions