Push does not appear to work (#235)
Closed
Daniel Wisnewski opened 7 years ago

messages are not being delivered to device when signed off or inactive.

Tried accounts on tigase.org, tigase.im, and sure.im and registered device via Settings for each. All messages held in offline until logged back in. Test wait times of up to 30 mins.

Bartosz Małkowski commented 7 years ago

Problem on server side.

%andrzej.wojcik fixed it, but he have to upgrade server.

Daniel Wisnewski commented 7 years ago

Andrzej, please assign to me when push component is functional so I can test. If you are not upgrading server, assign to Eric.

Andrzej Wójcik (Tigase) commented 7 years ago

Daniel, I've updated a push component on tigase.org and did some testing with %bmalkow. From what we found out, push notifications are working fine if the application is not killed on the device. We have found a few reports on the internet like the one at https://stackoverflow.com/questions/43293467/firebase-messaging-service-does-not-receive-messages-when-the-screen-is-off

When you wrote:

messages are not being delivered to the device when signed off or inactive.

what do you mean? as "signed off" or "inactive"?

You will get messages thru push if:

  • your mobile client is registered for push notifications and is disconnected

  • there is no other resource connected to this account

  • application is not manually killed on the device (and OS did not kill it for some unknown reason)

It is also possible that you will not get a notification if your account is disabled on your device. As if I remember correctly Tigase Android Messenger uses push only as a trigger to reconnect and receive messages from offline message storage, but it would be good if Bartosz would confirm this.

Bartosz Małkowski commented 7 years ago

I confirm it.

Remember that if you set application to "offline" status, then it will not reconnect.

Daniel Wisnewski commented 7 years ago

Push functionality now works as described. Closing issue.

issue 1 of 1
Type
Bug
Priority
Critical
Assignee
RedmineID
6232
Spent time
22h
Issue Votes (0)
Watchers (0)
Reference
tigase/_clients/stork#235
Please wait...
Page is in error, reload to recover