Closed bobness closed 1 year ago
OK, I added debug statements in submitShare()
and confirmed that it posts the new summary, but that sendNotification()
never returns -- in inspect-service
's database it would appear it's because there are no expo_token
values for either user.
So apparently they are not being updated as expected still.
Oh, I see. It would appear that the Device.isDevice
in registerForPushNotificationsAsync()
assumes that the device creating the summary is also a real device. Not just the one receiving. I tried commenting out that check, but it gives an error that UIBackgroundModes
is not configured in the Info.plist
file...
But @dreitec did it work for you without that plist property? Maybe that's going in wrong direction. Maybe I need to have another device to create a summary in real time so the other device gets a notification?
This is fixed -- the issue was that sendNotification
wasn't returning because of a typo in notification.js
that I introduced: https://github.com/bobness/inspect-service/commit/16341110cc71eae3efb15147057b9a27496880ce
It also does not notify followers. Related? maybe