FCM Push Notification is implemented using @capacitor/push-notifications@1.0.8. And whenever new notification received, a notification will show on notification drawer section.
When we add @capacitor/local-notifications@1.1.0, this push notification stop working.
We suspect some kind of conflict with there two plugins.
Getting following log error. Is there any solution for this ?
12-16 16:42:25.817 22466 30780 V Capacitor/PushNotificationsPlugin: Notifying listeners for event pushNotificationReceived
12-16 16:42:25.818 22466 30780 D Push_FCMService: onMessage - from: 991493265390
12-16 16:42:25.831 22466 22466 I Capacitor/Console: File: http://localhost/js/utils/notificationUtils.js - Line 35 - Msg: got a notif
12-16 16:42:25.916 22466 28161 V Capacitor/Plugin: To native (Cordova plugin): callbackId: SQLitePlugin11499015, service: SQLitePlugin, action: backgroundExecuteSqlBatch, actionArgs: [{"dbargs":{"dbname":"Mobile.db"},"executes":[{"qid":null,"sql":"BEGIN","params":[]},{"qid":null,"sql":"SELECT page_count * page_size as size FROM pragma_page_count(), pragma_page_size();","params":[]}]}]
12-16 16:42:25.926 22466 28161 V Capacitor/Plugin: To native (Cordova plugin): callbackId: SQLitePlugin11499016, service: SQLitePlugin, action: backgroundExecuteSqlBatch, actionArgs: [{"dbargs":{"dbname":"Mobile.db"},"executes":[{"qid":null,"sql":"COMMIT","params":[]}]}]
12-16 16:42:25.934 22466 28161 V Capacitor/Plugin: To native (Cordova plugin): callbackId: SQLitePlugin11499017, service: SQLitePlugin, action: backgroundExecuteSqlBatch, actionArgs: [{"dbargs":{"dbname":"Mobile.db"},"executes":[{"qid":null,"sql":"BEGIN","params":[]},{"qid":null,"sql":"SELECT value FROM preferences WHERE key = ?","params":["max-storage-limit"]}]}]
12-16 16:42:25.945 22466 28161 V Capacitor/Plugin: To native (Cordova plugin): callbackId: SQLitePlugin11499018, service: SQLitePlugin, action: backgroundExecuteSqlBatch, actionArgs: [{"dbargs":{"dbname":"Mobile.db"},"executes":[{"qid":null,"sql":"COMMIT","params":[]}]}]
12-16 16:42:25.955 22466 28161 V Capacitor/Plugin: To native (Cordova plugin): callbackId: SQLitePlugin11499019, service: SQLitePlugin, action: backgroundExecuteSqlBatch, actionArgs: [{"dbargs":{"dbname":"Mobile.db"},"executes":[{"qid":null,"sql":"BEGIN","params":[]},{"qid":null,"sql":"INSERT INTO notifications(entity_id, timestamp, notif_type, pri_key, obj_type, header) VALUES (?, ?, ?, ?, ?, ?)","params":["pushNotification",1671189145913,"push","300100564514764","serviceRequests",null]}]}]
12-16 16:42:25.961 22466 28163 W System.err: net.sqlcipher.database.SQLiteConstraintException: error code 19: NOT NULL constraint failed: notifications.header
12-16 16:42:25.962 22466 28163 W System.err: at net.sqlcipher.database.SQLiteStatement.native_execute(Native Method)
12-16 16:42:25.962 22466 28163 W System.err: at net.sqlcipher.database.SQLiteStatement.executeInsert(SQLiteStatement.java:83)
12-16 16:42:25.963 22466 28163 W System.err: at io.sqlc.SQLiteAndroidDatabase.executeSqlBatchStatement(SQLiteAndroidDatabase.java:208)
12-16 16:42:25.963 22466 28163 W System.err: at io.sqlc.SQLiteAndroidDatabase.executeSqlBatch(SQLiteAndroidDatabase.java:128)
12-16 16:42:25.963 22466 28163 W System.err: at io.sqlc.SQLitePlugin$DBRunner.run(SQLitePlugin.java:366)
12-16 16:42:25.963 22466 28163 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
12-16 16:42:25.964 22466 28163 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
12-16 16:42:25.964 22466 28163 W System.err: at java.lang.Thread.run(Thread.java:923)
12-16 16:42:25.964 22466 28163 V executeSqlBatch: SQLiteDatabase.executeInsert(): Error=constraint failure: error code 19: NOT NULL constraint failed: notifications.header
12-16 16:42:25.974 22466 28161 V Capacitor/Plugin: To native (Cordova plugin): callbackId: SQLitePlugin11499020, service: SQLitePlugin, action: backgroundExecuteSqlBatch, actionArgs: [{"dbargs":{"dbname":"Mobile.db"},"executes":[{"qid":null,"sql":"ROLLBACK","params":[]}]}]
12-16 16:42:25.979 3818 4090 E audit : avc: denied { find } for pid=11443 uid=10285 name=tethering scontext=u:r:permissioncontroller_app:s0:c29,c257,c512,c768 tcontext=u:object_r:tethering_service:s0 tclass=service_manager permissive=0