Comments (6)
For anyone else seeing this:
Android: it's not (currently) possible to display pictures within system notifications
iOS: I don't believe there's an automated solution that this plugin could provide in order to display pictures within system notifications on iOS.
The reason being that it requires creating a Notification Service Extension in Xcode with its own separate Apple App ID and Provisioning profile. This does not work well in a Cordova project where the Xcode project is volatile.
Anyone wishing to attempt this will need to do some manually by following a guide such as this as @heidji did.
So I'm closing this as it's not something this plugin can help with.
from cordova-plugin-firebasex.
It seems from this blog post that this is possible for iOS notifications, but not trivial (requires a "notification service extension").
For Android, it seems that rich notification content is not directly supported by FCM or by Android in its system notifications (displayed when app receives a notification message while app is in background/not running). However, it may be feasible to construct a foreground (local) notification using an FCM notification/data message and augment this to display the rich content (see here).
So I'll adjust the title of this for the benefit of both platforms.
from cordova-plugin-firebasex.
i did try some of these blog posts without luck and suspected that it might have something to do that the plugin already handles the notification (?)
please advise on how to proceed. I'm only talking about iOS here.
from cordova-plugin-firebasex.
actually was able to implement it using this guide .
Are you sure there is no way to do it with the plugin ? :D
from cordova-plugin-firebasex.
there is also a fun issue: after adding a "new target" to an ionic generated xcode project any subsequent build by cordova fails with:
Error during processing of action! Attempting to revert... Could not parse app.xcodeproj/project.pbxproj: Could not find *-Info.plist file, or config.xml file.
from cordova-plugin-firebasex.
thanks for the explanation. i really did hope I wouldn't have to create a new extension in xCode each time i run a new build
from cordova-plugin-firebasex.
Related Issues (20)
- [iOS build with precompiled Firestore] ld: Undefined symbols: enum case for FirebaseSharedSwift
- iOS App crashs with Firebasex 16.2.0/16.3.0 HOT 16
- How to remove the `com.google.android.gms.permission.AD_ID` permission on Android? HOT 9
- Progurad plugin conflict with firebase-x
- Is it possible to compile with GradlePluginKotlinEnabled? HOT 7
- Feature request
- firebasex 16.4.0 caused kotlin version error HOT 1
- com.google.android.recaptcha:recaptcha:18.1.2 security warning HOT 8
- Add rowNonce on signIn w/ Apple response
- Cannot read properties of null (reading '1') HOT 5
- I can't Build my app in Xcode on Apple Silicon
- authenticateUserWithMicrosoft problem due to custom parameter prompt=consent
- setConsent method implementation HOT 2
- Crash in "handleExceptionWithContext" method (rare occurrence)
- Inquiry About Addition of Google Analytics Consent Options for Ad Personalization and User Data HOT 3
- Ionic app not building if I have corodova firbasex installed, if I remove the plugin app will successfully install. HOT 4
- iOS custom or any notification sounds not working - no sounds at all. HOT 1
- Update iOS Firebase SDK component version to v10.23.0, fixes crash on startup HOT 7
- C:\Users\PC\MyApp>cordova run android Checking Java JDK and Android SDK versions ANDROID_HOME=undefined (recommended setting) ANDROID_SDK_ROOT=undefined (DEPRECATED) Using Android SDK: C:\Users\PC\AppData\Local\Android\sdk Subproject Path: CordovaLib Subproject Path: app TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ENOENT') at process.set [as exitCode] (node:internal/bootstrap/node:123:9) at C:\Users\PC\AppData\Roaming\npm\node_modules\cordova\bin\cordova:32:22 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) HOT 1
- IOS ITMS-91053 errors HOT 7
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 cordova-plugin-firebasex.