Android - The "Push.appCollection" is empty
See original GitHub issueHere is the test project to demonstrate this case: https://github.com/madc0w/push-test
Clone this repo and then just:
meteor run android-device
On startup, a new user with a random username will be created. The server will then continue attempting to send push notifications every 8 seconds. This allows the app to be closed on the device, as notifications will not be received while the app is open.
In the server log, you will see:
I20190219-18:26:47.868(1)? Push: Send message "test title" via query {}
I20190219-18:26:47.870(1)? Push: Sent message "test title" to 0 ios apps 0 android apps
I20190219-18:26:47.871(1)? Push, GUIDE: The "Push.appCollection" is empty - No clients have registred on the server yet...
and, of course, no notification is ever received on the device.
There is a build.gradle.bak file under cordova-build-override/platforms/android. This file contains the modifications suggested in the raix:push docs, all indicated with a “ADDED MANUALLY!” comment. Attempting to build/run this project with this file (i.e., by removing the “bak” suffix from the file name) will crash with:
Execution failed for task ':processDebugGoogleServices'.
> No matching client found for package name 'com.idpxbkbrfctuod.ybwqvoa26l9c'
Nonetheless, the project builds fine without these manipulations, so I’m not sure this is important.
Android 6.0.1 Meteor 1.8.0.2
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
There were so many… and my memory is fading a bit, probably due to the trauma of this experience.
One which I do remember had nothing to do with raix or push at all, but rather TAPi18n, which simply crashes the server with a helpful “huh?” logged to the console if you say the wrong thing to it. That took a day to understand. Charming.
Specifically, this:
TAPi18n.__("you_have_n_notifications", {}, language);
which works great, but if you instead do:TAPi18n.__("you_have_n_notifications", language);
Then the whole server goes down, and all the information you get is “huh?”. Yeah… huh indeed.Yea seems charming xD. I thought you got tired of errors and part your ways with the push functionality.