Unknown opened 4 years ago
|
|
Enabled Push in app Settings? Server side you see the push.tigase.im registration? Any server logs? |
|
Hi licaon-kter, Yes push is enabled in the app. See attached logs from the server. What I can gather is that the server thinks that the client is offline (as if the app is closed) so the message is stored as offline but it should actually send a push notification as the app is in the background and not closed. Appreciate your help. Thanks |
|
Technically the app is closed, but that's the point of the push system, to send the notification and revive the app as needed @guusdk Thoughts? |
|
In provided logs, there is no push notification being sent to SiskinIM push notifications component (only to Monal) so Siskin cannot show notification which was not sent to it. If you've observed push notifications issues mostly yesterday (there was an upgrade of our push notifications component), then I would suggest to try to disable it and reenable (after a few seconds) and check once again. |
|
I attempted to turn push on/off but no luck. I also removed the 'openfire-callbackOnOffline' plugin and tested again. Attached is the log output I receive when trying to send a message to a recently put to background ios app. Please let me know if further output would be useful. Thanks further logs.txt |
|
I think this exception may be suggesting an issue on your server:
but that would need to be verified by someone from OpenFire. |
|
I'll have a look into that error as it was not present before. thanks |
|
OK I have resolved the offline message exception. I think the issue may be to do with the callback URL for the CallbackOnOffline plugin. I am not sure if this plugin is needed for offline push and what to set the callback url to? As I said earlier, push is working fine if the app is open See attached for the latest logs which have more information. Thank you log3.txt |
|
I have uninstalled the CallbackOnOffline plugin and am now receiving the same logs I first uploaded which licaon-kter reviewed. |
|
@pd888 I did not review anything :) Just pinged people in the know. tigase.org has cert issues now, not sure if it matters. |
|
@licaon-kter tigase.org domain is not used by push notifications and we are aware that it expired. It should be replaced soon @pd888 In the new logs, the notifications are sent by Openfire only to Monal push notifications component and not to SiskinIM push component (they are not being sent to
When app is opened and connected, push notifications are not used at all! |
|
Ah okay that makes sense @hantu85 May be a silly question, but how can I configure Openfire to use push.tigase.im nor push.sure.im Is there a guide somewhere? I am using this push plugin Latest version 0.7.0 thank you |
|
I have no knowledge about that, but if Openfire supports pushes correctly (and most likely it does), Siskin when you enable push notifications automatically tries to register for push notifications and forward all required details to Openfire. |
|
Okay thanks for the quick help, I will have a further look into it and update if I have any other questions |
|
I have done some further testing. Reinstalled the push plugin on the server and attempted to re-register/enable push in the siskin app on iphone. See initial connect attached file where you can see it connects successfully to push.tigase.im However in the 2nd uploaded file 'trying to send' you can see it is again trying to connect to 'ios13push.monal.im' when I send a message to an offline user. I am not sure why it is doing this. initial push connect.txt trying to send.txt |
|
@pd888 do you also have Monal? If not, can you remove the monal push server reference? Did you contact Openfire to ask for support too? Eg. |
|
I did use monal as a test before I set up push but I dont use it any more. I will also contact open fire and see if they can help. thanks for the link |
|
Hi everyone. I'm looking at this from an Openfire perspective. Can someone tell me exactly when / under what conditions the client will attempt to enable notifications? |
|
@guusdk only on in app toggle...umm...toggling :) |
|
reenable.txt @guusdk |
|
@guusdk Client MAY and usually enable push each time they connect - to make sure that push is enabled for them. In the logs posted by @pd888, I see that notifications are disabled for
Push notifications are actually sent to |
|
The ClassCastException that is at least partially responsible will be fixed in the next version of the Openfire plugin (details). A work-around for this issue is to restart Openfire after updating or reloading the PushNotification plugin. |
|
I have rebuilt the server with openfire 4.5.4. I am no longer getting the class exception and the server has registered to push.tigase.im however push notifications to clients is still not working. See attached for latest logs. Thanks 454logfile.txt |
|
In the provided log, I see notifications about enabling/disabling push notifications on the Openfire server, but no attempt to send a push notification. |
|
The Siskin iOS app shows that push is enabled for the user account but even when I toggle push on and off in the app I see no logs indicating on the server that push is on for the client. Then trying to message an offline client (on a device with push enabled) the message is stored for offline and server logs do not show the push notification plugin intercepting the message. I am not sure how to force the plug-in to pick up the message of any way of enabling push on the client apart from toggling push to enabled in Siskin app
|
|
There are log entries indicating that in the log which you have provided. The question is not: "Why the app is not showing a notification?" but "Why the server is not sending notification?" I'm not familiar with Openfire internals to make any suggestions or provide you with a solution. It might be good to bring it up in the Openfire community and ask for some suggestions. |
|
I will debug further and also upgrade to the latest version of openfire once it is out. Thanks for your help |
|
@hantu85 wrote:
That was the clue that uncovered the root cause of the problem. The push notification plugin for openfire has a bug that incorrectly states that a particular push service has already been identified, if no options are provided (which Siskin apparently doesn't do, which is perfectly fine, as they're optional). |
|
For posterity: this was fixed in version 0.8.0 of the Push Notification plugin for Openfire (details). Thanks for your help guys! |
Hi there, thanks for the great app. I am using siskin on iOS with openfire and have configured push notifications. Everything is working well when the app is open however if it put it into the background then notifications of messages are not received. Background app refresh is on however the app does not seem to refresh.
As soon as the app is brought back to the forefront then messages and push notifications come in.
I am using the latest version of the app 6.2. Is there something further that needs to be done to enable push to work when the app is in the background.
Thanks