tinode / ios

Tinodios: Tinode Messaging Client for iOS
Apache License 2.0
241 stars 104 forks source link

TinodiosNSExtension not working and notice not shown #187

Closed hamedvbv closed 1 year ago

hamedvbv commented 1 year ago

When we do these: 1.run TinodiosNSExtension with Tinode.app 2.log in with bob account. 3.send the app to the background. 4.set a breakpoint on didReceive() function in TinodiosNSExtension/NotificationService.swift. 5.send a message from frank to bob using another device or browser.

result: badge increased on Tinode.app but breakpoint not issued and notification not shown in notification center.

consider: I checked this by sending push notification manually in firebase (mutable-content:1, alert:{title,body}) , this work and breakpoint issued but because it didn't have enough payload, in line 44, exited.

any suggestion?

aforge commented 1 year ago

Thanks for reporting. What server and client versions did you use?

hamedvbv commented 1 year ago

Thanks, I Use: Server: 0.20 iOS client: 1.2.0

or-else commented 1 year ago

1.2.0 can't be right. That's from 2 years ago: https://github.com/tinode/ios/releases/tag/v1.2.0

hamedvbv commented 1 year ago

It's my mistake.

the version I used is v1.10.3 https://github.com/tinode/ios/tree/v1.10.3

aforge commented 1 year ago

I cannot reproduce this behavior. Is it reproducible on your side in a stable manner?

When sent into the background, my extension still triggers the breakpoint and presents the alert in the notifications center as well as increases the badge counter upon me sending a message to the client.

Also note that if you tested this scenario right after installing the app on the device, it may take several minutes for the device into to propagate through FCM/APS.

or-else commented 1 year ago

@hamedvbv It's been nearly two weeks. Any update on this?