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 push notifications -`googleServicesFile` relative path might be breaking stuff

See original GitHub issue

As discussed in the issue #1330 - there are issues with the push notifications.

Tried the “solution” provided after my last comment, and in the meantime the issue was closed.

Anyhow,

Doin as the guide suggests works fine, android stand alone now gets push notifications (expo app not so much, so still and issue with development) https://docs.expo.io/versions/latest/guides/using-fcm

Now, when you try to build the project from Expo XDE, we now get a new error

11:03:49 Building JavaScript bundle: finished in 9442ms.
11:03:58 Failed to publish package: ENOENT: no such file or directory, open './google-services.json'

The file google-services.json is in the root directory of the project (side by side with app.json).

CLI tools was installed today. XDE updated to latest version a few days ago (yesterday?)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
esamelsoncommented, Apr 26, 2018

Hi all – sorry for the delay here. We’ve landed a fix for this bug and it will ship with a new version of XDE soon. In the meantime, you’ll need to use one of the workarounds provided here (use an absolute rather than relative path, drop the google-services.json file into the XDE working directory, or just use exp instead). Really sorry for the inconvenience!

2reactions
danibjorcommented, Apr 17, 2018

Seems like using the full path instead of relative works from Expo IDE. Not good for source control tough - but for a single developer, sorta OK.

app.json:

"android": {
            "googleServicesFile": "/Users/daniel/projects/<customer>/<project>/google-services.json",
            "icon": "./icon-android.png",

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage your Google News notifications - Android
View your notifications. On your mobile device, open the Google News app . At the top right, tap your Profile picture or initial....
Read more >
Expo android app, PushNotifications doesn't work in ...
I was able to fix expo push notifications in my project. ... googleServicesFile field with the relative path to the google-services.json ...
Read more >
Android Companion 2022.2: Local Push Notifications!
These notifications do not count towards the rate limit and are shown on the device immediately, every time. So what's the breaking change?...
Read more >
Tutorial: Push Notifications on desktop and mobile devices
The features supported in Push Notifications will vary depending on ... insert the relative path to the google-services.json file under the Android exporter ......
Read more >
Android Notifications Not Showing Up? 10 Fixes You Can Try
The majority of Android apps offer their own set of customizable notification options to modify how often such apps can push alerts, which...
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