An open API service for software projects hosted on Open Collective.

github.com/parse-community/node-gcm

A NodeJS wrapper library port to send data to Android devices via Google Cloud Messaging
https://github.com/parse-community/node-gcm

Remove comment, license is in LICENSE.md

8ee8b6c62db491e3c556f30f6d66199602a8dc8a authored about 10 years ago
Remove silly space

02bfe40b33e3ba5972d5f2ab9c407518a494c879 authored about 10 years ago
Make the data returned from toJson fit real notification format

If an __argName is defined, use that instead of the given name

08c826c406ecee42f2c37ee1b6753fe76efb3add authored about 10 years ago
Make sure that we dont try to set a value on a non-exist object

3c11be64f25e77f0cfa63319f2ef6a09dcbf25fa authored about 10 years ago
Use the message-options to pick out valid arguments and add them to the message

c9c57cecc9dc12711ecd95db5e966b883a1e003c authored about 10 years ago
Remove floating spaces

d68d74290769bce90e5bad9217f7928302016b46 authored about 10 years ago
Add toJson() method to Message

24bc754df7b142d1670866ff48365e47add8748c authored about 10 years ago
Move all parameters to params object (internal storage)

dd7e85cf3675e6a57633a90df86d2d1eb7711f5b authored about 10 years ago
Removed comment (licensing/copyright is in LICENSE.md)

e81d6dfe9c3fbc58e681d11f05d0e54fa2bedbf0 authored about 10 years ago
Added message-options.js which describes options for message programatically

e77cb1142265e097aa43b502472e3390cd97fb69 authored about 10 years ago
rename obj->raw

1f095f2eaa1fb8061eb948cb69ba90f64ccb6fe6 authored about 10 years ago
Merge pull request #137 from jazzzz/patch-1

Fixed typo

1be214e4d68ab9902f4043abd2fe944b00f924cc authored about 10 years ago
Fixed typo

d716f8805d64c6375fbb3386bd98c29dec6103dc authored about 10 years ago
Added a missing space in README

f5ceff1db7391745939ac3b781dd7c3e3a4a106e authored about 10 years ago
Extracted CONTRIBUTING.md

c8d7edaaa13ef6ad00a05c3f36ddb9bd3d31c413 authored about 10 years ago
Added some newlines in README

2d065141a5bebca13296f7add47f0041ec0c47bd authored about 10 years ago
Removed LICENSE, LICENSE.md exists

4ff7cf48eaf1841e62c229c3dfea711c84bd70a2 authored about 10 years ago
Extracted LICENSE.md

e3e441a429c81c5061c63fdfb4b19dbbe13cdafc authored about 10 years ago
Removed Contributors from README

This was redundant, already present in package.json

36c3e0eac352765af7f950963d751bcf8ac5cf1c authored about 10 years ago
Moved all links to package.json

c2ca88a9757612d2ed28cd0bc7fade5da7bd5460 authored about 10 years ago
Version bump

7b25ed8a00cf71575f2f6c713d5ed761b633315a authored about 10 years ago
CHANGELOG note about the bug fix

223a212ec97b595eb3ba5b759a4a89c60bced0b9 authored about 10 years ago
Added CHANGELOG for all the small changes

8aba3d3c68bafc4ead5f0d602497635bd2501250 authored about 10 years ago
Added kaija as contributor

5fceb292fe3a15f6f96b32e4d4c5c8ead0ced944 authored about 10 years ago
Added CHANGELOG for addNotificaiton

cc27e37fbef3a8c3a96b1721c40cbde9b9d1bc09 authored about 10 years ago
fix indentation

9a37a97c12abc171794c33919cdcefde9330dc50 authored about 10 years ago
cleaned up the README for notification payloads a bit

ce62caf928d6a9af805d45257d916e2b4cbaf046 authored about 10 years ago
Extracted CHANGELOG.md

e8b517292d5d981ccfe725184f92295f292acbed authored about 10 years ago
Merge pull request #117 from SimenB/npm-test

Normalize test execution

61ba42a895ba31885259b28f4571084ab670ac2b authored about 10 years ago
Merge pull request #127 from kaija/addNotification

Add notification info to display on lock screen

4747575bff8c1200f08faaea449b4d084e40b6f6 authored about 10 years ago
remove deprecated method and test case

b9028e0b4a4eae780c99fbb506ccb464657cd855 authored about 10 years ago
Add notification message property test case and example

2afe9c5e09b5fd96e5c2cbe8c7f34b677543bc0f authored about 10 years ago
Merge pull request #126 from ashrko619/updatedReadme

Updated README.md

bcd0b1519c3a781835842fd0a5257b1834686544 authored about 10 years ago
Add notification option table in README

b3fa5c1bd3dd543f48f6572cbc0df78115066e68 authored about 10 years ago
Updated contributors in package.json

9f131811873b6653ce2a9ae1da2ec1d67870bae4 authored about 10 years ago
Change the addNotification API and add README section

0a54ac995a38e2ca873a89ea36ba251eabcb18a1 authored about 10 years ago
Add notification info to display on lock screen

4a3eb716d730a72efee2afe46df586b0d739b06f authored about 10 years ago
Updated Contributing section in README

7a6c8707087b325acf90022b18be14cf7f2a154b authored about 10 years ago
Updated README.md

d480418c9425cf00f5e84b98eb120ecc5e06cb97 authored about 10 years ago
Merge pull request #111 from ToothlessGear/full-api-docs

Full api docs

1ea03006530b9f904d2a9dc15a93e6920a5d0744 authored about 10 years ago
Fixed shuold->should

81a901fbbfe45af4a043dc465901defcb1416686 authored about 10 years ago
Added initial draft of sender docs

186aaf9b31d14f540554080ae3f27da7b830d533 authored about 10 years ago
Added first draft of message docs

108a166030bb37cfc0ccc07cc9038d6480aebe76 authored about 10 years ago
Add KATT to contributors

81b9748526464b51f41fefa1bea577c2d9380419 authored about 10 years ago
Merge pull request #123 from KATT/issue122

prevent recursion when errors are thrown in `send()` callback

db940ac1ff6eb3b8c0bd5d7d321add63c0b25bbe authored about 10 years ago
clearer error message

b09bb1d454fdf61c28a28956e570e8e8a0d5169b authored about 10 years ago
parseAndRespond refactor

306f5ef9b5b7b482b0810f49452f2e5c2375d99d authored about 10 years ago
prevent recursion when errors are thrown in `send()` callback

fixes #122

d6ed4022f58189160d62a3c1f3ff0360dc94b480 authored about 10 years ago
Merge pull request #121 from maqnouch/patch-1

Fix typos

20b40ba23593527fcb820a1aa8c1224255996529 authored about 10 years ago
Fix typos

doc: fix typo in readme.md

1d61d4b954912fdc0445036681f7f0ce0d23b4a1 authored about 10 years ago
Merge pull request #118 from SimenB/bump-dev-deps

Bump devDependencies

1b669b865f3fb9c1c56f0f1146d19af16f91812f authored over 10 years ago
Merge pull request #116 from SimenB/package.json-files

Use `files` in package.json

e9f52d5d88de160a0266b6288a70a49d754557a9 authored over 10 years ago
Bump devDependencies

This removes the deprecation warning

ce9975d59da5ca299500b7abda83ca9b05fa06e6 authored over 10 years ago
Normalize test execution

f9c8836d07b5d409984aadd7a7e7ca5c454f49b5 authored over 10 years ago
Use `files` in package.json

662c41149b6daaff946ecfc6d70a2228af143829 authored over 10 years ago
Merge pull request #110 from Nonemoticoner/patch-1

Update README.md to make it essier to understand how to use the library.

026e04b7dc234e90209ebd05bcd6760427cb9dd5 authored over 10 years ago
Update package.json

Added my name.

9cc84c873473c936e25b3d7db4473e2bbff0b07c authored over 10 years ago
Update README.md

Added my nick to contributors list.

b08defae07071d103b706379f5e0071ebc24e151 authored over 10 years ago
Update README.md

Second update according to @hypesystem wishes.

4b4ea0af1a4408771f489e67004d6989b538ea38 authored over 10 years ago
README Changelog 0.10.0 for deprecating addDataWith*

47c985e1b899ff30cde0bcc4c9cfd765b1c8fae0 authored over 10 years ago
Merge pull request #90 from ToothlessGear/deprecate-addDataWith

Deprecate addDataWith{KeyValue,Object} methods.
We now print a message every time they are used.

32d9367a681833151a374f6e1e4da85f08913281 authored over 10 years ago
Update README.md

I propose such solution for #70 No need to make it more complex. Let's keep it simple.

706188d3b79517a9e607a1a1c67b12e2921bf6c5 authored over 10 years ago
Changelog for README

ee96896e9aa221539c35480ee68e5212997b8c34 authored over 10 years ago
Sender#send() should update the failures and successes correctly when retrying and failing some

76247f59cc724f7e6d20310a5cc7d8ea357c50b5 authored over 10 years ago
Sender#send() should update the failures and successes correctly when retrying

b00729d30299582db15e3907b17635199182c577 authored over 10 years ago
Fix: properly cycle through all values in results in test

c2c036d0dd45584796cc33420db5b20ff8dfd706 authored over 10 years ago
Fix: calculate failure correctly

8dfb816ef7267e3be17d15d02b517241f45062a6 authored over 10 years ago
Added support for single-registrationid in Sender#sendNoRetry

f8e5d91117ae9a78ac246618f02f11ab4c0e5361 authored over 10 years ago
Version bump 0.9.15

a01984d8a126a0822117a53fae5e453ae2efaf9f authored over 10 years ago
Changed `npm test` so it runs cross-platform

./node_modules ... failed on windows, but using `sh` to execute it should work cross-platform

be9c8ff74b92f3a9e4a0829670f05046d7f1402a authored over 10 years ago
Merge pull request #99 from ToothlessGear/better-support-for-single-device

Better support for single device

2335f32fc42467ab44214b9661053266fd155831 authored over 10 years ago
Return error if no regids in next tick

This makes the code always run consistently from an outside perspective

214a95e5783a7c4f9d317f3a4a8dd06c4254a3bd authored over 10 years ago
If a single registration id is given, wrap it in an array

This adds support for sending to a single id without manually wrapping it.
Ie. `sender.send(messa...

184bdf27ee59e2ef4033795169427b817e96ff0c authored over 10 years ago
Merge pull request #95 from ToothlessGear/ensure-full-result-set

Ensure full result set

7a2fb5feb6ff3affed9dc537454f09d9f28e3cea authored over 10 years ago
Test several retries

The tests so far only tested one retry, which would pass with the old code.
Several retries (thes...

a3e7ed717a8e37d1d4dd41adce5d81c20d38e59a authored over 10 years ago
The same is true for the backoff constant

0 is valid!

4f2f25176116de8f552ef66ee7a7282d00966270 authored over 10 years ago
If retries is 0 we still shouldnt set it to default

Only if retries is not a number can we assume the default (5)

2c302377ddde6470aea4a3de849b66458810713f authored over 10 years ago
Put retries and backoff into the options object

This is where they should have been all along

1be32c50f907d56cd26f0740450ef96e837024aa authored over 10 years ago
Update the fields on the result (success, failure, canonical_ids)

... depending on the newlty returned values

838372531855cdcb4ff6d0946e4586eb8f2a62d3 authored over 10 years ago
Change interface of function to take `options` instead of `retries` and `backoff`

This requries changing the defaulting of arguments

a09abf029aaa4181c9cd62157ce81efceee10806 authored over 10 years ago
Wait the backoff time before retrying even if the request errd

2e3419e823cde4919bf0b3a1bb77b442fa2695af authored over 10 years ago
Wait with checking if registrationIds are set until we *know* we have a callback

63f4b18563c7442fe79f7dd79fe291e465cc19a0 authored over 10 years ago
Added explanatory comment

f10d877ca310d832a3eed8edc37cb5adea042f10 authored over 10 years ago
Removed now-unused name of function `lambda`

f7b993ebaeaa9a42bbf4b0cd7c6cab6d1ea0f618 authored over 10 years ago
Added debug statement when retrying

da866ed4b2c125cc256e2c7d151d2a638d13a2d9 authored over 10 years ago
If the recursive call completely errored, the outer result is the best it gets

So we just return that, then, yo.

f613163e4fc8cfade7594cea7160ac3d9614a326 authored over 10 years ago
Replace i += 1 with i++

d09073175d57c2abb6b1ac6bf70c8f959541c7c8 authored over 10 years ago
Replace old call to sendNoRetry with lambda with a recursive call

When calling recursively, we reduce the number of retries (because we used one, duhh);
we doubl...

5c1e7cfc7146ab6fbf41b01ba427347eca922b48 authored over 10 years ago
Remove always-true if-statement

dd47ad24c8417c96a86b8555106cf5eb0a9a33b9 authored over 10 years ago
fix indentation

e824cca608186e339edf2fafb83306282bf4c567 authored over 10 years ago
Reverse if-statement (early-stop)

9d941e7422557fd7d3ed21b96f3ca50544ada0af authored over 10 years ago
Add regIdPositionMap

This keeps track of the (upcoming) inner calls indexes relative to the outer one

87fcf75dd7fbc1947bda09bf62476f5089c31c3b authored over 10 years ago
Remove unnecessary indentation

0acff4f650a1ceb9f2e27d8f9726ea0948a2396e authored over 10 years ago
Move declaration of unsentRegIds to right before use

f34987000e3456c99cc43083c68c74f4313b1db9 authored over 10 years ago
If we errd, call send recursively with the same set (all must be retried)

685a39ef43a10ef808004be043879500b3d1eaa6 authored over 10 years ago
Only declare i when it needs to be

d29b6ebee9e208289c2876d979230d1f5e2d5d44 authored over 10 years ago
Remove use of attempts

23da95eba46f4b57e9c2d061b6f5cb7d4dedbe7d authored over 10 years ago
fix indentation

9fda04d34d313ac5d0515b06a7c7dd3a54ecf8ef authored over 10 years ago
Move backoff max-limit to start of function

744f082b6e33fc1a6fd6af2a178c6f4bd8099922 authored over 10 years ago
Replace sleepTime with raw backoff variable

405427352b24f92ca36d1616e8dd014485404841 authored over 10 years ago