Comments (12)
For Android, as you described, as long as the onNotification
is called when the app, that was on the background, comes to the foreground because of the notification tapping, it is working as intended.
This way, when the app is on the foreground, you can stylize the message however you want. Like a in app popup or, for example, with https://github.com/katzer/cordova-plugin-local-notifications.
For iOS, thought, it should be reaching onNotification
when on foreground or when the notification is tapped. For the iOS issue, I'll investigate.
from cordova-plugin-fcm-with-dependecy-updated.
Thanks for the time & for the reply, yes for the android i am using cordova-plugin-local-notification to show notification on foreground since onNotification is working on android both foreground and background
For iOS, my requirement is at-least update the badge when Notification is been received when app is in foreground state hence onNotification should work
from cordova-plugin-fcm-with-dependecy-updated.
I am seeing the same behavior. It works fine for Android, but not for iOS. I am also looking to trigger local notifications in my iOS app. The local notifications are working fine, when my app is in the foreground, on Android, but nothing is triggered on iOS.
from cordova-plugin-fcm-with-dependecy-updated.
The badge-specific issue is addressed as #58
from cordova-plugin-fcm-with-dependecy-updated.
@viksat7 Which version of xcode and xcodebuild are you using to build?
from cordova-plugin-fcm-with-dependecy-updated.
Could @keithj87 or @viksat7 create a hello world app, of which can be shared here on github? Of which you experience the same issue?
from cordova-plugin-fcm-with-dependecy-updated.
ok sure give me a day or two as i am busy with work today, will share the github repo of a sample app
from cordova-plugin-fcm-with-dependecy-updated.
Issue closed due to inactivity and newer fixes addressing the feature being released in the mean time.
from cordova-plugin-fcm-with-dependecy-updated.
Foreground notification still does not work on iOS. Working fine on android.
This happens when I have LocalNotification plugin installed.
if localNotification plugin is uninstalled then the code to handle notification works.
Please look into this.
from cordova-plugin-fcm-with-dependecy-updated.
I'll, thank you @meghanadixit1. Knowing this helps a lot.
from cordova-plugin-fcm-with-dependecy-updated.
@meghanadixit1 which version of LocalNotification you were installing?
from cordova-plugin-fcm-with-dependecy-updated.
@meghanadixit1 @viksat7 @keithj87
I have good news. The issue was that this plugin and cordova-plugin-local-notifications
were trying to set themselves as the one NotificationCenterDelegate handler.
Now there is a mechanic in place that shares this resource between with other plugins.
Released as v6.4.2, or if you feel adventurous, v7.0.0-beta.1 (for Promise returns and ionic support).
Let me know if upgrading is not enough to fix the issue.
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.