auto refresh notification push-id upon re-install #1780
Replies: 7 comments
-
Unless the app gets launched after it is uninstalled and reinstalled, it has no mechanism to trigger this push update. Launching the app will do this - has that not been your experience? The next time it occurs, retrieving debug logs would be helpful. |
Beta Was this translation helpful? Give feedback.
-
tbh, I am not really sure. I see the messages roll in but even after I did a push refresh. There's only 1 other device that could be needing the refresh, but it is not targeted at all for a notification.... would I need to set the debug on |
Beta Was this translation helpful? Give feedback.
-
It is happening when the push rate is displayed:
which als positively identifies the missing App bearer. That is to me, not in the log obviously. Adding to this, I believe this to be the cause of failed login attempts too, could that be? I regularly see a failed login, and after a while an Ip-ban, of an IP number associated with our mobile carrier. other than climbing down the menu, could we create a script with the Clear Push Id in a command, so we can create a button for that in the interface? That would make it so much easier for the unexpecting end-user ;-) |
Beta Was this translation helpful? Give feedback.
-
Which device isn't in the list there? That will be the one which errorred - the rest look successful. We need to first identify that so we can figure out why its push id has gone invalid. If it is because the app was uninstalled, nothing we can do remotely will make it re-register. If the app is still installed and launching, it should be keeping its push id up-to-date whenever it starts up. If this device is yours, please start it and export debut logs in the app configuration. This should include information about its push ID. You can upload the logs here. This will not caused failed logins. Those should include the User-Agent which I have only seen be the frontend in bug reports. |
Beta Was this translation helpful? Give feedback.
-
not sure if it is called 'uninstalled' exactly in Apple terminology, but upon longer time of not using, Apple seems to 'archive' an app so it doesn't take space. When they (my kids) the open the app once more, it gets re-instated, and the push_id needs to be cleared/refreshed. In the listing above, I can of course positively identify the device, because I know which one I am not seeing ;-) Hope my explanation its clear enough to understand for you, sorry for the layman wording. So no, its not mine, but I can see it again (my daughter made it to the app-settings and refreshed ;-) Dont have any debug logs I am afraid. They are not available in the integrations logs on my HA instance? About the failed logins: thats just the thing, whenever that happens it says to check the logs, but there's nothing at all in the logs. Could you advize me which components to set debug on for any failed login to appear in the log? Lastly, when does this listingnin the logs occur? Is it a timed happening, or does it happen based on an action in the HA instance, trying to notify the clients? In which case I wouldn't understand that, because I dont try to notify them at all. Or, is this happening upon a refresh of the devices states in the HA integration maybe. |
Beta Was this translation helpful? Give feedback.
-
When the app is launched, it updates the server with the latest push id, and as of a few releases of HA ago, this causes the notify service to be reloaded. What this means is that what you're asking for already should be happening. If this is not the case, there's 2 pieces of information we can combine:
If these two differ, any attempt to push will result in an error, so it's useful to know what the state of the client is because that should inform which error case we're in. I'm unsure if the offloaded apps you're referring to continue to support push notifications. Presumably that's not a feature Apple would turn off when unloaded, which means whatever you're experiencing is different than normal. So for that reason, and the push id reason, it would be useful to have logs from the client as well. Just the latest run will do. In the App Configuration, you can export the logs as a .zip file, and you can drop them here to add them to my Dropbox. I'll delete them after reviewing, and nobody else will see. It will contain information like GPS locations -- you may want to redact it.
Failed login logs will include the User-Agent, so you can see what is causing them. If it includes the "like Safari" string, that's the frontend causing it.
Only when you send a notification to the |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Whenever the App gets re-installed (on many devices its gets archived automatically when not used over a period of time)
the following message is displayed in the HA logs:
in our household, this pertains to devices not in the home, but of outbound family members... Who I have to ask time and time again, to manually refresh the notification push id
Describe the solution you'd like
Would be very nice if the above process could be handled automatically, making it a way less intrusive device-tracker...
Especially since these family members don't have a clue why this is, or what they are doing. The simply want to use the App, and, tbh, they shouldn't have to handle these technical things.
Additional context
Beta Was this translation helpful? Give feedback.
All reactions