Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS no notification #63

Open
youngiphone opened this issue Sep 21, 2023 · 7 comments
Open

iOS no notification #63

youngiphone opened this issue Sep 21, 2023 · 7 comments

Comments

@youngiphone
Copy link

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

@balzack
Copy link
Owner

balzack commented Sep 21, 2023

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!

@youngiphone
Copy link
Author

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.

@balzack
Copy link
Owner

balzack commented Sep 23, 2023

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?

@Dinobali
Copy link

Dinobali commented Oct 4, 2023

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.

@balzack
Copy link
Owner

balzack commented Oct 4, 2023

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
Copy link
Owner

balzack commented Jan 15, 2024

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
Copy link
Owner

balzack commented Jan 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants