Comments (11)
I'll investigate. Thanks for pointing it out.
from cordova-plugin-fcm-with-dependecy-updated.
If you can point me in a direction to debug this, I'd be happy to help as well 🙏
Thank you!
from cordova-plugin-fcm-with-dependecy-updated.
If needed:
{
"registration_ids":
[
"<redacted>"
],
"data":
{
"show_in_foreground": true,
"remote": true,
"link": "<redacted>",
"guid": "5939821c-415b-4f1e-acfc-0ebce3e58217",
"NotificationType": "<redacted>",
"objectId": 1103047868,
"userId": 0
},
"notification":
{
"title": "<redacted>",
"body": "<redacted>",
"click_action": "FCM_PLUGIN_ACTIVITY",
"sound": "default",
"icon": "fcm_push_icon"
},
"priority": 10,
"content_available": true
}
``
from cordova-plugin-fcm-with-dependecy-updated.
Funny you have the same click_action
defined, just like the example reported in https://stackoverflow.com/questions/56924836/firebase-api-push-doesnt-open-background-app-on-android-device.
Would you be able to avoid sending the click_action
key?
from cordova-plugin-fcm-with-dependecy-updated.
@andrehtissot From my understanding, not passing the click_action would just launch the app/bring back the app to the foreground when pressing the push notification, and not lunch the Java FcmPluginActivity
, which would not be triggering onNotification
in javascript-land.
from cordova-plugin-fcm-with-dependecy-updated.
I'll check. 🤔
from cordova-plugin-fcm-with-dependecy-updated.
Do you have more than one FCM_PLUGIN_ACTIVITY action in your AndroidManifest.xml? (<action android:name="FCM_PLUGIN_ACTIVITY" />
)?
from cordova-plugin-fcm-with-dependecy-updated.
There is another way to get this feature.
Hi, I've written a simple implementation, which creates a notification, instead of relying on the click_action given.
Just to check if a solution like this could work in your case (master...andrehtissot:custom-notification-implementation).
So, from the root app directory, execute something like:
cd ..
git clone https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated.git
cd -
cd ../cordova-plugin-fcm-with-dependecy-updated
git checkout custom-notification-implementation
cd -
ionic cordova plugin remove cordova-plugin-fcm-with-dependecy-updated
ionic cordova plugin add ../cordova-plugin-fcm-with-dependecy-updated
And please let me know if the error still happen. Not sure why it does, but this way it might work or bring better error messages. :)
from cordova-plugin-fcm-with-dependecy-updated.
I went with FirebaseX in the meantime as I couldn't spend more time debugging 🙏 I hope I'll find the time to come back to it as it would be better for future iterations if we prove to be using only FCM.
from cordova-plugin-fcm-with-dependecy-updated.
If someone ever run into this issue before though, you are welcome to test first and keep it going forward 🙏 Thank you for your assistance @andrehtissot!
from cordova-plugin-fcm-with-dependecy-updated.
No problem, many changes are on the way.
from cordova-plugin-fcm-with-dependecy-updated.
Related Issues (20)
- Only receive notification when app is in the foreground (iOS) HOT 1
- Incorrect number of unread notifications in iOS
- Notification not getting received in Android 31 HOT 25
- andrehtissot:master don't have latest codebase and he is contributor in NPM. We want merging from marutifh:master to andrehtissot:master to support Android 12 upgradation
- In Android 13 the notification does not arrive HOT 5
- Notifications work on iOS 12 but don't work on iOS 16 HOT 1
- build is failing though android:exported=true is being added to plugin.xml HOT 5
- changing targetSdkVersion to 31 make notification not fired HOT 13
- can anyone give me example app for ionic3 working fcm? HOT 1
- cordova-plugin-fcm-with-dependecy-updated/ionic/ngx not woking ionic 5 complaition fail JIT
- Compilation error in Voltbuild HOT 4
- A problem occurred configuring project ':app'. > org.gradle.api.internal.tasks.DefaultTaskContainer$DuplicateTaskException: Cannot add task 'processDebugGoogleServices' as a task with that name already exists.
- Again notifications and SDK UPGRADE HOT 3
- Has anyone picked up the project yet? HOT 5
- after tapping on notification app not launch in android 13 version?
- Receiving messages from the topic after being unsubscribed
- Push Notification Not Working On iOS with cordova-plugin-fcm-with-dependency-updated . HOT 7
- Do we have support for higher SDK Versions? HOT 1
- got a email -> legacy Firebase Cloud Messaging (FCM) APIs will be discontinued.
- BSF Cordova Ecosystem Crowdfunding Plan
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-fcm-with-dependecy-updated.