Giter Site home page Giter Site logo

Comments (6)

dpa99c avatar dpa99c commented on August 16, 2024 3

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.

dpa99c avatar dpa99c commented on August 16, 2024

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.

heidji avatar heidji commented on August 16, 2024

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.

heidji avatar heidji commented on August 16, 2024

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.

heidji avatar heidji commented on August 16, 2024

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.

heidji avatar heidji commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.