databag icon indicating copy to clipboard operation
databag copied to clipboard

iOS no notification

Open youngiphone opened this issue 2 years ago • 7 comments

Hello, thanks for this awesame script i have two iphone one iPhone 14 pro with iOS 17 all notifications enabled and i have notifications but in the second iphone XS with iOS 17 all notifcations enabled and i dont have any notifications.

thanks for the work

youngiphone avatar Sep 21 '23 14:09 youngiphone

The notification should work on either version of you iPhone. Can you double check the profile screen and make sure notifications are swithed on? If it is on maybe switch it off/on to see if there is some sort of glitch there?

In case it wasn't clear, notifications are only sent as a result of a connected contact's actions. Your contact would either need to start a topic, post a message, etc...

Please let me know if the problem persists or is resolved, and thank you for using the project!

balzack avatar Sep 21 '23 19:09 balzack

Thanks for the fast reply,

iphone X restarted and switched on/off the notification in phone and in user account and in topic setting.

started a new topic in iphone x with the user 2 host, added user 1 in topic (iphone 14 pro) the user 1 is notified and when the user 1 write a message in the topic the user 2 is not notified.

youngiphone avatar Sep 22 '23 09:09 youngiphone

I just tested on an iPhone X, and the notifications appear for me. I'll try and get my hands on an iPhone XS, but I don't anticipate there being a difference.

A couple more questions:

  • Is the app closed when you expect to receive the notification? If you app is running it will update the topic and not use the iOS notification.
  • Do you have any custom configuration on your phone? Someone using tor said they had issues until they disabled it. I'm not sure what the issue is yet, but I would like to be compatible.
  • Are the accounts for user 1 & user 2 hosted on the same node? Perhaps there is some server configuration difference blocking the outbound notifications?

balzack avatar Sep 23 '23 17:09 balzack

Hi Balzac,

I appreciate your time and effort on this project. Unfortunately, I have the same problem as described above.

Notifications are reaching my Android phone but not my iPhone.

I have literally tried everything but no luck so far.

Dinobali avatar Oct 04 '23 18:10 Dinobali

I've been trying to reproduce the issue, but I still cannot. Are you also using an iPhone XS?

If you create an account on the demo site [https://databag.coredb.org] can you receive notification from that server?

If you are able to log into your server and run a sql command:

sqlite3 /var/lib/databag/databag.db sqlite> select id, push_type, push_enabled, token, platform from sessions; Can you confirm the push_type for your iphone record says 'fcm' and 'push_enabled' has a value of 1?

Thanks for reporting this, hopefully with the more data points I will be able to reproduce. Once I do that, I can usually resolve the issues quickly.

balzack avatar Oct 04 '23 19:10 balzack

I am finally able to reproduce the issue. If I login after the first install then no notifications appear, but if I logout and relogin it works. I wasn't able to reproduce this bug, because it does not show up on testflight, which is were I do most of my testing. I hope to push out a fix within the next week or two, sorry.

balzack avatar Jan 15 '24 22:01 balzack

If you get a chance, can you update your iOs app and see if the issue is fixed? You will need to logout and log back in to register a new push token. Sorry it took so long to (hopefully) fix the issue.

balzack avatar Jan 18 '24 07:01 balzack