raix-push icon indicating copy to clipboard operation
raix-push copied to clipboard

Android, "Push.appCollection" is empty - No clients have registred on the server yet...

Open parameter opened this issue 7 years ago • 5 comments

Please help me finding out what's wrong.

// server

Meteor.startup(function () {

	Push.debug = true;

	Push.Configure({
	  gcm: {
	    apiKey: '<api-key>',
	    projectNumber: <projectNumber>
	  }/*,
	  "production": true,
	  "badge": true,
	  "sound": true,
	  "alert": true,
	  "vibrate": true */
	});

	Push.addListener('error', function(err) {
	  console.log(err);
	});

});

// client

Meteor.startup( function() {
	
	Push.Configure({
	  android: {
	    senderID: 1016592401718,
	    alert: true,
	    badge: true,
	    sound: true,
	    vibrate: true,
	    clearNotifications: false
	    // icon: '',
	    // iconColor: ''
	  },
    production: false

	  /*,
	  ios: {
	    alert: true,
	    badge: true,
	    sound: true
	  }
	  */
	  
	});

  Push.addListener('message', function(notification) {
    console.log('QWERTY',notification);
  });

	Push.send({
	  from: 'Test',
	  title: 'Hello',
	  text: 'World',
	  badge: 12,
	  query: {}
	});

});

Running meteor like this meteor --settings ./config/settings.json

All I get is:

Push: Settings userId "YnZmtvyX8Y9ZDwSY7" for app: K2x8f4Kz56eqzk8Td
Push: Send message "Hello" via query {}
Push: Sent message "Hello" to 0 ios apps 0 android apps
Push, GUIDE: The "Push.appCollection" is empty - No clients have registred on the server yet...
``

/Lost meteorite

parameter avatar May 10 '17 06:05 parameter

Do I have to make use of the method "raix:push-update"? I fail finding it used in any examples though, just lost here...

parameter avatar May 10 '17 08:05 parameter

Did you follow this article?

bergjs avatar May 10 '17 17:05 bergjs

Any news on this? I have a test app, which I run locally on my Android device, and I am seeing the same thing whenever I call Push.send:

I20190219-13:40:27.202(1)? Push: Send message "test title" via query {}
I20190219-13:40:27.264(1)? Push: Sent message "test title" to 0 ios apps 0 android apps
I20190219-13:40:27.325(1)? Push, GUIDE: The "Push.appCollection" is empty - No clients have registred on the server yet...

Also, I suppose a related issue is that the _raix_push_app_tokens collection is always empty.

madc0w avatar Feb 19 '19 12:02 madc0w

Any news on this? I have a test app, which I run locally on my Android device, and I am seeing the same thing whenever I call Push.send:

I20190219-13:40:27.202(1)? Push: Send message "test title" via query {}
I20190219-13:40:27.264(1)? Push: Sent message "test title" to 0 ios apps 0 android apps
I20190219-13:40:27.325(1)? Push, GUIDE: The "Push.appCollection" is empty - No clients have registred on the server yet...

Also, I suppose a related issue is that the _raix_push_app_tokens collection is always empty.

Hello, I'm getting the exact same error, did you have any luck?

rodcisal avatar Jun 12 '20 19:06 rodcisal

I finally fixed this problem by upgrading meteor to 1.10.2 For some reason, the package wasn't installing correctly on Meteor 1.8.1 so many methods weren't accessible causing that my meteor server couldn't send out the message to FCM

rodcisal avatar Jun 23 '20 20:06 rodcisal