Giter Site home page Giter Site logo

Comments (5)

smorris1709 avatar smorris1709 commented on June 12, 2024

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.

andrehtissot avatar andrehtissot commented on June 12, 2024

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.

smorris1709 avatar smorris1709 commented on June 12, 2024
<?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.

andrehtissot avatar andrehtissot commented on June 12, 2024

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.

smorris1709 avatar smorris1709 commented on June 12, 2024

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)

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.