raix-push: The "Push.appCollection" is empty

What does this mean?

Push: Send message "test" via query {}
Push: Sent message "test" to 0 ios apps 0 android apps
Push, GUIDE: The "Push.appCollection" is empty - No clients have registred on the server yet...
Push: Send message "test" via query {}
Push: Sent message "test" to 0 ios apps 0 android apps
Push, GUIDE: The "Push.appCollection" is empty - No clients have registred on the server yet...
Push: Send message "test" via query {}
Push: Sent message "test" to 0 ios apps 0 android apps
Push, GUIDE: The "Push.appCollection" is empty - No clients have registred on the server yet...

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 40 (3 by maintainers)

Most upvoted comments

I followed the instructions here https://github.com/raix/push/blob/master/docs/BASIC.md But I don’t see anything about how to register a client.

How does a client get added to Push.appCollection?

Thanks, Don

@ethanteague try the following, might work inside the .meteor/cordova-plugins file paste the following

de.appplant.cordova.plugin.local-notification@0.8.4
org.apache.cordova.dialogs@1.2.1
org.apache.cordova.vibration@2.1.1

This did not work for me.

@carpmike do we need to update the guides we have in this repo? or link to the article at medium

@sahanDissanayake your solution worked for me, thank you!

I had been struggling for a few days, then put it away for a couple weeks … glad to have come back to this thread and found and working solution suggested!!

Thanks so much for the response! We were able to get 3.0.3-rc.5 to build but we had to add

App.configurePlugin('phonegap-plugin-push', {
    SENDER_ID: 12341234
});

to mobile-config.js. We have not yet experimented with the Android side of notifications.

To anyone else experiencing this, after getting this version to build, I was finally seeing the server attempting to send messages, e.g.

Push: Sent message "hello" to 1 ios apps 0 android apps
Got error code 8 for token 03d7…

My (new) problem turned out to be the provisioning profile. The extremely helpful micro walkthrough, states:

Still in xCode make your way over to Build Settings and select the view of ALL and scroll down to code signing and select the proper Provisioning Profile here (should be the same as your <bundle_id> from earlier):

And has a small screenshot of a relevant profile being selected, but doesn’t actually talk about generating that profile specifically for your app. I was using an existing wildcard profile. After I created a new profile just for this app, selected it in Xcode, and rebuilt the app, I was able to send myself notifications per the walkthrough.