FAQ Database Discussion Community


Compress json string for gcm push notification message

json,compression,android-gcm,gzip,chrome-gcm
I have problem with json data and gcm push notification. I send big json data and it exceed 4kb limit, so is there any compression that i can use to compress that json(gzip or something like that) and send it?...

ServiceWorker and Push Notification Payload

node.js,android-gcm,ecmascript-6,service-worker,chrome-gcm
Community: ServiceWorker is a great advance technology in terms of cache managment, but I have some questions associated with other operations such as: Push Notification: I made a GCM integration (Google Clud Message) and NodeJS, following this article, the problem is that when GCM sends the information to the client...

Google Cloud Messaging in dart

dart,google-chrome-app,chromium,chrome-gcm
I'm trying to connect to the Google Cloud Messaging with this code in dart senderIds.add("api-project-testid"); chrome.gcm.register(senderIds).then(registerCallback); but I have this error: Exception: Uncaught Error: Profile was not signed in. I think that the error arises from the fact that chromium is not connected with any account. Does anyone know how...

Send Push Notification to everyone with Service Worker

push-notification,service-worker,chrome-gcm
curl --header "Authorization: key=blahblahblah" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"blahblahblah\"]}" Currently i am able to send push notification though the command above. In order to send the notification to user, i need to get the registration id from user. What if I want to push notification to everyone (who subscribed to...

Chome extension message between users

node.js,google-chrome-extension,google-chrome-app,p2p,chrome-gcm
Is it possible to send messages between users directly without a server in chrome extensions? (P2P) Or required server (NodeJS example)? Maybe use Google Cloud Messaging, i not understand logic and work (official example extension)...