Coder Social home page Coder Social logo

node-urban-airship's People

Contributors

cojohn avatar daithiw44 avatar stefkohub avatar unrob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

node-urban-airship's Issues

Chop payload length before sending?

Blah.

Error: Payload length must be less than or equal to 256 bytes
at IncomingMessage.UrbanAirship._transport (/lib/urban-airship.js:160:14)
at IncomingMessage.EventEmitter.emit (events.js:115:20)
at IncomingMessage._emitEnd (http.js:366:10)
at HTTPParser.parserOnMessageComplete as onMessageComplete
at CleartextStream.socketOnData as ondata
at CleartextStream.CryptoStream._push (tls.js:495:27)
at SecurePair.cycle (tls.js:849:20)
at EncryptedStream.CryptoStream.write (tls.js:230:13)
at Socket.ondata (stream.js:38:26)
at Socket.EventEmitter.emit (events.js:88:17)

Trailing slash

It should probably be noted that the /api/push/ endpoint requires the trailing /.

Just to save tracking down that 405 or 301 response.

api/push/ doesn't work with android devices

When trying to send a push to an android device I'm getting a Invalid device token error. But it works fine if I include the android_channel key instead the device_token one.

"error":"Could not parse request body.", "error_code":40282,"details":{"error":"Invalid device token myDeviceToken"}

The new v3 API is not supported

I am trying to use this module with v3 API and its not working as intended.

I have found two issues:

  1. You get a 'This app is not configured for iOS push'. To fix this i had to add "Accept": "application/vnd.urbanairship+json; version=3;" to the headers in UrbanAirship.prototype._transport
  2. The response codes for push have changed and include a 202 which is not in UrbanAirship.prototype._transport

api/push/ doesn't work with Urban Airship API v3

In the document, we need to set header
Accept: application/vnd.urbanairship+json; version=3;
However, received error when I did that
{"ok":false,"error":"Could not parse request body.","error_code":40000,"details":{"error":"The key 'aps' is not allowed in this context","path":"aps","location":{"line":1,"column":9}},"operation_id":"f8cb9b60-caa3-11e3-9c7c-14feb5d31f47"}

Fix: we can delete the Accept header or change it to
Accept: application/vnd.urbanairship+json; version=2;

Please consider supplying a License file

Hi,

I work for a large company. I'm interested in using node-urban-airship, for an internal project. However, the company won't even allow an evaluation to occur without some kind of license identifying who the copyright belongs to and a statement about licensing (GPL, MIT, BSD, Apache, whatever).

Please consider at least putting a LICENSE file in the root directory, and potentially adding copyright statements in the headers for each source file.

Thanks,

Kevin Gambrel
Technology Manager
Walt Disney Animation Studios
[email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.