question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android - The "Push.appCollection" is empty

See original GitHub issue

Here 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:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
madc0wcommented, Mar 14, 2019

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.

0reactions
shivang007commented, Mar 14, 2019

Yea seems charming xD. I thought you got tired of errors and part your ways with the push functionality.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android, "Push.appCollection" is empty - No clients have ...
Android, "Push.appCollection" is empty - No clients have registred on the server yet... #301. Open. parameter opened this issue on May 9, ...
Read more >
Meteor raix:push: Android Client no longer registering after ...
Meteor raix:push: Android Client no longer registering after ... appCollection" is empty - No clients have registred on the server yet.
Read more >
Send push notifications to Android devices using Firebase ...
In this tutorial, you create a blank Android app that receives push notifications using Firebase Cloud Messaging (FCM).
Read more >
_raix_push_app_tokens lost the token field randomly on ...
Almost of them appear on android devices. I suspect these below code. But when I test, it do not fire. Push.appCollection = new...
Read more >
Android SDK (Legacy) - Amplitude Developer Center
The Amplitude Android SDK installation and quick start guide. ... have a value set yet, it's initialized to an empty list before the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found