Comments (5)
Logcat errors from app being in the background to tapping the notification
2020-04-22 09:57:32.781 24497-27133/com.app.app W/FirebaseMessaging: Icon resource fcm_push_icon not found. Notification will use default icon.
2020-04-22 09:57:32.920 3832-3832/? D/EdgeLightingManager: showForNotification : isInteractive=true, isHeadUp=false, color=0, sbn = StatusBarNotification(pkg=com.app.app user=UserHandle{0} id=0 tag=FCM-Notification:60864722 key=0|com.app.app|0|FCM-Notification:60864722|10236: Notification(channel=fcm_fallback_notification_channel pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0))
2020-04-22 09:57:32.922 3832-3832/? D/EdgeLightingPolicyManager.NotificationGroup: group key = 0|com.app.app|0|FCM-Notification:60864722|10236 ,value= summary : null , child : 1key = 0|com.app.app|0|FCM-Notification:60864722|10236 , value = NotificationData { tag= FCM-Notification:60864722 } , }
2020-04-22 09:57:32.945 5217-5217/? D/Notification.Badge: [valid] onNotificationPosted : StatusBarNotification(pkg=com.app.app user=UserHandle{0} id=0 tag=FCM-Notification:60864722 key=0|com.app.app|0|FCM-Notification:60864722|10236: Notification(channel=fcm_fallback_notification_channel pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0))
2020-04-22 09:57:32.945 5217-5217/? D/Notification.Badge: notificationKey : 0|com.app.app|0|FCM-Notification:60864722|10236, count : 0, this.count : 1
2020-04-22 09:57:32.951 5217-5217/? D/Notification.Badge: [filtered] check channel for special filtering [channel : NotificationChannel{mId='fcm_fallback_notification_channel', mName=Miscellaneous, mDescription=, mImportance=3, mBypassDnd=false, mLockscreenVisibility=-1000, mSound=content://settings/system/notification_sound, mLights=false, mLightColor=0, mVibration=null, mUserLockedFields=0, mFgServiceShown=false, mVibrationEnabled=false, mShowBadge=true, mDeleted=false, mGroup='null', mAudioAttributes=AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null, mBlockableSystem=false}]
2020-04-22 09:57:32.951 5217-5344/? D/Notification.Badge: notificationKey : 0|com.app.app|0|FCM-Notification:60864722|10236, count : 1, mTotalCount : 1
2020-04-22 09:57:48.145 3832-3832/? D/EdgeLightingPolicyManager:NotificationGroup: remove : sbn : StatusBarNotification(pkg=com.app.app user=UserHandle{0} id=0 tag=FCM-Notification:60864722 key=0|com.app.app|0|FCM-Notification:60864722|10236: Notification(channel=fcm_fallback_notification_channel pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0))
2020-04-22 09:57:48.151 5217-5217/? D/Notification.Badge: [valid] onNotificationRemoved : StatusBarNotification(pkg=com.app.app user=UserHandle{0} id=0 tag=FCM-Notification:60864722 key=0|com.app.app|0|FCM-Notification:60864722|10236: Notification(channel=fcm_fallback_notification_channel pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0))
2020-04-22 09:57:48.151 5217-5217/? D/Notification.Badge: notificationKey : 0|com.app.app|0|FCM-Notification:60864722|10236, count : 0, this.count : 1
2020-04-22 09:57:48.153 3832-14148/? I/ActivityManager: START u0 {act=FCM_PLUGIN_ACTIVITY typ=null flg=0x14000000 cmp=null} from uid 10236
2020-04-22 09:57:48.154 3832-14148/? D/ActivityManager: Received ACTIVITY intent in key u0 {239500c act=FCM_PLUGIN_ACTIVITYstartActivity cmp=null res=-91} from uid 10236
2020-04-22 09:57:48.617 4148-4148/? W/NotificationEntryMgr: removeNotification for unknown key: 0|com.app.app|0|FCM-Notification:60864722|10236
from cordova-plugin-fcm-with-dependecy-updated.
Instead of:
START u0 {act=FCM_PLUGIN_ACTIVITY typ=null flg=0x14000000 cmp=null} from uid 10236
You should have received something like:
START u0 {act=FCM_PLUGIN_ACTIVITY flg=0x14000000 pkg=[YOUR APP PACKAGE] cmp=[YOUR APP PACKAGE]/com.gae.scaffolder.plugin.FCMPluginActivity (has extras)} from uid 10133
So, for starters I'd ask for you to share your platforms/android/app/src/main/AndroidManifest.xml
.
from cordova-plugin-fcm-with-dependecy-updated.
<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="4020019" android:versionName="4.2.19" package="com.app.app" xmlns:android="http://schemas.android.com/apk/res/android">
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<application android:hardwareAccelerated="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:usesCleartextTraffic="true">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
<intent-filter android:label="@string/launcher_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="com.gae.scaffolder.plugin.MyFirebaseMessagingService" android:stopWithTask="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@mipmap/ic_launcher" />
</application>
</manifest>
from cordova-plugin-fcm-with-dependecy-updated.
Yes, we found the issue.
You should have this action:
<activity android:exported="true" android:launchMode="singleTop" android:name="com.gae.scaffolder.plugin.FCMPluginActivity">
<intent-filter>
<action android:name="FCM_PLUGIN_ACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Which should be added automatically by installing the plugin, as it is defined in the plugin.xml (https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/blob/master/plugin.xml). The weird part is that you have some of it added, but an older version of it.
Adding that part should be enough. Let me know you it doesn't work for you.
from cordova-plugin-fcm-with-dependecy-updated.
Ahh makes sense! sometimes it works and then others I have to re platform then it works
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.