Comments (5)
Something else I noticed that might be worth noting is that notification images (not icons) don't seem to be working when the app is in the foreground.
Edit: Just to clarify, I tested this by sending the request to the FCM V1 api directly
from expo.
To add on to "the notification icon is not working", on Android I'm finding that the icon displays when the app is in the foreground. But I get a blank circle as an icon when the app is in the background
This is happening with a development build
from expo.
No issue with the icon when we add the correct name/value pair on the Android manifest but it seems there is no "plugin" on the package expo-notification or this one is not working as expected.
But this issue can be fixed "simply" by adding a manual plugin specified here #24844 (comment) in addition to the config.notification.icon
in the app.config
from expo.
Hi,
I am facing the same issue,
I am using expo-server-sdk: 3.10.0 to send notifications. When I change the useFcmV1 to true on Android, my app does not get the data from the notification, and the icon shows a blue circle with thick borders. When I set it to false, everything works. On iOS, everything works fine.
I am using Expo SDK 49.
from expo.
For me, the plugin here is unnecessary because the AndroidManifest that's created seems fine. I have 2 notification_icon additions.
<meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@drawable/notification_icon"/>
and
<meta-data android:name="expo.modules.notifications.default_notification_icon" android:resource="@drawable/notification_icon"/>
I also see mapping files declaring the png and naming it to the correct asset name.
I am on expo 51.0.2 and expo-notifications 0.28.1 (both latest).
On prebuild, the png file is processed and correctly placed into all the xdpi drawable asset out put folders.
I've also triple checked with our UX designer that the requirements are met: it's a white-only transparent PNG at 72 dpi at 96x96 pixels exactly.
Hopefully this info helps someone. I think there's been a mismatch of actual problems going on between expo 49, 50, and 51, because the manifest is now correct and I no longer need the withFirebaseMessagingNotificationIcon plugin.
from expo.
Related Issues (20)
- Response in network tab is blob instead of json HOT 1
- expo-font 12.0.5 HOT 15
- [expo-media-library][iOS] No suitable URL request handler found Expo 51 HOT 3
- Response in network tab is blob instead of json HOT 1
- [expo-51] Android app unable to resolve module expo-router/entry inside monorepo (new arch enabled or not) HOT 2
- Measuring Distance from the Floor in Expo/React Native HOT 1
- Error: Cannot find native module 'ExpoApplication', js engine: hermes HOT 3
- [expo-51] Build error with PrivacyInfo.xcprivacy after upgrading to SDK 51 HOT 1
- Connected iPhone not showing up on expo run devices list for development build HOT 5
- [create-expo-module] Could not find method publishing() HOT 5
- [SDK 51][expo-web] @apollo-client fails during expo export with metro for web HOT 2
- [SDK50][expo-updates] Request for assistance with expo-updates in SDK 50 without --public-url HOT 1
- Could not determine the dependencies of null. > Could not resolve all dependencies for configuration ':classpath'. HOT 1
- expo-camera doesn't work HOT 1
- [SDK 51][Android][Expo Go] Screen orientation change listener not firing
- Expo Camera No Longer Captures Sound HOT 2
- npx expo lint gives a maximum call stack size exceeded HOT 2
- Hi guys, wouldn't MMKV be a better option than AsyncStorage? Why isn't he at Expo Management? HOT 1
- After updating to expo 51, dev-build keeps on refreshing HOT 1
- Static output for web not respecting public/index.html HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expo.