XF 2.3 Push notification does not work

AndreaMarucci

Well-known member
My PWA is working perfectly but the push notifications doesn't work at all and also I've many error like this one in the admin
Code:
Push notification failure: cURL error 6: Could not resolve host: permanently-removed.invalid (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://permanently-removed.invalid/fcm/send/fDVj_8MeEiQ:APA91bF_3K8mtDk40nMLrcCK6jeckwTeF7FBRhqn4uMKdGSosLYflaGFp7HRZBi6cLlvr5Yba5apSXVhpbRtaxOpO89mYQSHXrB6866wRfHqO0HEQNgmiWmfNPyhoFh19T-MKMt1ZUAy
If the problem is that my server cannot communicate with the service that send the push, can someone tell me what to check and what to unlock to see these push go through?
 
This particular error seems to stem from cancelled push notifications. The host that XF is trying to communicate with (permanently-remove.invalid) isn't a host that exists hence the error from curl. See this bug report. The best "fix" for now is probably a cron job to remove entries like that from the database as described periodically (as I believe you have been doing) to keep the noise in the error log down.
 
Understood. That sounds like it perhaps could be two separate issues then, unless (and total speculation here) push notifications are in one queue and a failure (for example the .invalid domain) in one entry causes the queue to stop processing? Sorry I don't know the innards of how the push mechanism works, hopefully someone else can offer some insights, or if you have an active licence you could try raising a support ticket.
 
permanently-removed.invalid
 
Push subscriptions are scoped to an origin/domain, so users will need to resubscribe. I'm not sure off-hand why they wouldn't be prompted again when visiting the new domain. Does the option show up under account preferences?

View attachment 315674

Push notifications are also device specific not account specific. Users can have it enabled on some devices with their accounts.


Either of these help ?

Are the permissions set ?

Search the posts in this search ?
 
Hello no, notifications simply doesn't work and no one here at Xenforo help
It seems like you need a way out.
It really seems like a 95% you problem, and maybe a 5% possible Xenforo problem .... AS everyone else seems to have it working. FWIW, notifications seem amazing but seem to only work variably for many.

Buy 1 hour of @MySiteGuy 's time (or someone else's) to see what is wrong.

Post in the paid request forum ?

FWIW, you don't seem to be able to get out of this yourself.
 
Back
Top Bottom