chatwoot / chatwoot-mobile-app

Mobile app for Chatwoot - React Native
https://www.chatwoot.com/mobile-apps
MIT License
584 stars 262 forks source link

Push notifications stopped working after last app update #793

Closed hipur closed 1 week ago

hipur commented 1 week ago

Confirm you’re filing a new issue. Search issues in Github and ensure that the issue is not already exist.

Describe the bug

Push notifications worked normally before latest update. But stopped working on all mobile clients since 20/06/2024.

To Reproduce

Receive a message with notifications turned on for user. Notifications arrive on web client, but not on Android clients.

Expected behavior

Notifications on Android clients (as it did work before yesterday)

Screenshots

None

Observed behavior

Log shows this lines:

I, [2024-06-21T22:52:20.450736 #1]  INFO -- : [ActiveJob] [EventDispatcherJob] [7bcc8e3b-788e-4b99-85e1-e1c8ecb4019e] Skipping EventDispatcherJob with ["notification.deleted", {"_aj_serialized"=>"ActiveJob::Serializers::TimeWithZoneSerializer", "value"=>"2024-06-21T22:52:20.385603513Z"}, {"notification"=>{"_aj_globalid"=>"gid://chatwoot/Notification/6059"}, "_aj_symbol_keys"=>["notification"]}] because of ActiveJob::DeserializationError (Error while trying to deserialize arguments: Couldn't find Notification with 'id'=6059)
I, [2024-06-21T22:52:23.841346 #1]  INFO -- : [ActiveJob] [EventDispatcherJob] [978cb6c9-409e-4af4-aa31-e7ed608b6bae] Skipping EventDispatcherJob with ["notification.deleted", {"_aj_serialized"=>"ActiveJob::Serializers::TimeWithZoneSerializer", "value"=>"2024-06-21T22:52:23.779949748Z"}, {"notification"=>{"_aj_globalid"=>"gid://chatwoot/Notification/6061"}, "_aj_symbol_keys"=>["notification"]}] because of ActiveJob::DeserializationError (Error while trying to deserialize arguments: Couldn't find Notification with 'id'=6061)
I, [2024-06-21T22:52:37.801185 #1]  INFO -- : [ActiveJob] [EventDispatcherJob] [f3f4367d-3b72-43b0-9fc0-33115ba90ae2] Skipping EventDispatcherJob with ["notification.deleted", {"_aj_serialized"=>"ActiveJob::Serializers::TimeWithZoneSerializer", "value"=>"2024-06-21T22:52:37.782804250Z"}, {"notification"=>{"_aj_globalid"=>"gid://chatwoot/Notification/6063"}, "_aj_symbol_keys"=>["notification"]}] because of ActiveJob::DeserializationError (Error while trying to deserialize arguments: Couldn't find Notification with 'id'=6063)
I, [2024-06-21T22:52:55.995128 #1]  INFO -- : [ActiveJob] [EventDispatcherJob] [6d290f07-692f-4bde-bd66-d6a0af93b7df] Skipping EventDispatcherJob with ["notification.deleted", {"_aj_serialized"=>"ActiveJob::Serializers::TimeWithZoneSerializer", "value"=>"2024-06-21T22:52:55.972711543Z"}, {"notification"=>{"_aj_globalid"=>"gid://chatwoot/Notification/6064"}, "_aj_symbol_keys"=>["notification"]}] because of ActiveJob::DeserializationError (Error while trying to deserialize arguments: Couldn't find Notification with 'id'=6064)
I, [2024-06-21T22:52:56.111251 #1]  INFO -- : [ActiveJob] [EventDispatcherJob] [94baeeb6-1c8b-48c7-b15f-38cb140c2817] Skipping EventDispatcherJob with ["notification.deleted", {"_aj_serialized"=>"ActiveJob::Serializers::TimeWithZoneSerializer", "value"=>"2024-06-21T22:52:56.066327891Z"}, {"notification"=>{"_aj_globalid"=>"gid://chatwoot/Notification/6062"}, "_aj_symbol_keys"=>["notification"]}] because of ActiveJob::DeserializationError (Error while trying to deserialize arguments: Couldn't find Notification with 'id'=6062)
I, [2024-06-21T22:53:11.360762 #1]  INFO -- : [ActiveJob] [EventDispatcherJob] [e2afc3f2-e1c4-497d-a665-5545bff8e2e4] Skipping EventDispatcherJob with ["notification.deleted", {"_aj_serialized"=>"ActiveJob::Serializers::TimeWithZoneSerializer", "value"=>"2024-06-21T22:53:11.339173523Z"}, {"notification"=>{"_aj_globalid"=>"gid://chatwoot/Notification/6065"}, "_aj_symbol_keys"=>["notification"]}] because of ActiveJob::DeserializationError (Error while trying to deserialize arguments: Couldn't find Notification with 'id'=6065)
I, [2024-06-21T22:53:11.476079 #1]  INFO -- : [ActiveJob] [EventDispatcherJob] [538dbb36-f0e0-43b1-9b47-4469635a606f] Skipping EventDispatcherJob with ["notification.deleted", {"_aj_serialized"=>"ActiveJob::Serializers::TimeWithZoneSerializer", "value"=>"2024-06-21T22:53:11.435910617Z"}, {"notification"=>{"_aj_globalid"=>"gid://chatwoot/Notification/6066"}, "_aj_symbol_keys"=>["notification"]}] because of ActiveJob::DeserializationError (Error while trying to deserialize arguments: Couldn't find Notification with 'id'=6066)

Environment

Additional context

Tried uninstalling and reinstalling Android client, clearing cache and allowing unrestricted battery usage

Possible fixes

?

linear[bot] commented 1 week ago

PR-1170 Push notifications stopped working after last app update

hipur commented 1 week ago

Updating to 3.10 fixed the issues.