snikket-im / snikket-ios

Snikket iOS client
https://snikket.org/app/ios/
GNU General Public License v3.0
72 stars 10 forks source link

ios devices not always available to receive calls #206

Open gitbq opened 1 year ago

gitbq commented 1 year ago

Describe the bug Snikket app unable to detect the "status" of other ios Snikket users from the same instance. As a result a call cannot ALWAYS be initiated to ios devices.

My sole objective is to use the service for calling.

To Reproduce Steps to reproduce the behavior: I am testing using 2 iPhones, iPad mini, and an android phone. All ios devices also have monal installed, and connected with Snikket server accounts to test the feature compatibility.

I have set the status in ios (snikket) to "online", as opposed to the default setting of automatic.

There is an account option, under push notifications, when in away/xa/Dnd state, but this toggle cannot be turned on.

On my iPhone, when I open the contact list, the contacts connected using Android or Monal show as green, or online. (the round dot at bottom rhs of each contact avatar). However the accounts on Snikket on the other ios devices show as grey, or offline.

As a result when I tap on any grey colored contact and open the conversation , the phone call icon at the top rhs does not appear.

Immediately after adding contacts, and shortly thereafter everything seems to work fine, calling works great on all devices. I can close the Snikket app and turn off the screen on the ios devices, yet they will still ring through. It seems like there is some period after the ios device screen is turned off that Snikket on ios stays active. (this could be an ios limitation?)

However the monal accounts always show up as green or available / online. If the Snikket app accounts could also always show as green, then calling would always be available.

Software versions:

gitbq commented 1 year ago

Just to update the above information. The following day, the monal accounts on other devices no longer show up as green. Even though the monal app on those devices was used a few hours previous. The Android account always shows as available.

stillgreenmoss commented 1 year ago

@gitbq I'm also experiencing this bug on iOS -- my contacts using snikket on Android always have the call button present in the Snikket UI, and my contacts on iOS don't have the call button available. Though the calling did work initially.

However I didn't know that this was related to whether the contact was showing up as online. I'm in the process of looking at server logs to try and understand this bug better.

stillgreenmoss commented 1 year ago

I think this is covered in this issue and related commits: https://github.com/snikket-im/snikket-ios/issues/157