h2soft / node-gcm Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hey folks,
I have a strange behaviour. Sometimes I send multiple notifications in parrallel. It means that I call gcm.send()
multiple times. I know I could use an array of reg ID instead but it messages are not the same.
Everything works fine except when there is one error in one of the notifications. For example when one of the recepient has an expired reg Id, I receive the NotRegistered
error. My problem is that I get this error for all the other notifications sent at the same time whereas there should be no error for the other recipients. This is strange
어쩌다 찾게되었는데 창신님꺼라 더반갑네요. 원래는 에러나면 안쓰고말지만 아시는분이라 그냥갈수가 없어서.. ^^;
npm install gcm 후에 에러가 뜹니다. 제 노드 버전에 뭔가 안맞나보네요
아래는 에러메세지 입니다.
npm ERR! Error: No compatible version found: gcm
npm ERR! No valid targets found.
npm ERR! Perhaps not compatible with your version of node?
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:486:10)
npm ERR! at next_ (/usr/local/lib/node_modules/npm/lib/cache.js:436:17)
npm ERR! at next (/usr/local/lib/node_modules/npm/lib/cache.js:413:44)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:406:5
npm ERR! at saved (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:151:7)
npm ERR! at Object.oncomplete (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]
npm ERR!
npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "gcm"
npm ERR! cwd /Users/doubleub/dev/CoffeeScript/easy-bus-server
npm ERR! node -v v0.6.13
npm ERR! npm -v 1.1.15
npm ERR! message No compatible version found: gcm
npm ERR! message No valid targets found.
npm ERR! message Perhaps not compatible with your version of node?
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/doubleub/dev/CoffeeScript/easy-bus-server/npm-debug.log
npm not ok
As of April 10, 2018, Google has deprecated GCM. The GCM server and client APIs are deprecated and will be removed as soon as April 11, 2019. Migrate GCM apps to Firebase Cloud Messaging (FCM), which inherits the reliable and scalable GCM infrastructure, plus many new features. See the migration guide to learn more.
Hi,
I know that this would probably be a lame question, but I'm trying to install it on my macbook pro with mountain lion, and I get this response after executing the install command:
npm WARN install Refusing to install gcm as a dependency of itself
do you have any idea what could it be?
Thanks,
Juan Docal
Do you have any plans to switch to JSON as the message format, enabling e.g multicast messages?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.