Search code examples
google-cloud-messaginggoogle-chrome-appnode-webkitnwjs

NW.js chrome.gcm. API doesn't work


I have chrome packaged app, and there I use GCM.

NW.js said that they will continue to support chrome APIs in this article, but I can't get a registration ID when using chrome.gcm.register.

Any news about this? Is this API still supported?


Solution

  • Solution is to use --enable-gcm flag in command line.

    Example(OS X):

    open -n -a nwjs --args --enable-gcm /path/to/app/