Factory reset is not detected by our servers - the factory reset registrations are treated the same with devices not in use.
The framework doesn't provide any notification to GCM that a device is about to be factory reset, and all previous data is erased, so the new device looks like a brand new device with no trace of the previous one.
Costin
--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/41a09c62-b779-4356-9fde-8a678d908751%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ok, so it follows the procedure for a device not in use (I presume that means an offline device, so you can't trace it for the offline period). This means that any message is ACKed for the duration of the TTL (4 weeks), then it gets a NACK? If not even this works for a new flashed OS image, then what exactly can tell us that the requested REG id is not available anymore?
--
On Thursday, March 19, 2015 at 9:15:55 PM UTC+2, Costin Manolache wrote:Factory reset is not detected by our servers - the factory reset registrations are treated the same with devices not in use.
The framework doesn't provide any notification to GCM that a device is about to be factory reset, and all previous data is erased, so the new device looks like a brand new device with no trace of the previous one.
Costin
On Mar 19, 2015 2:29 AM, "Bogdan Zurac" <bogdan...@gmail.com> wrote:This is still an issue a week since the device has been flashed. We still receive ACK for that device. Can you confirm this issue?--
On Wednesday, March 11, 2015 at 2:19:44 PM UTC+2, Bogdan Zurac wrote:Hello again.I've flashed the 5.1 image yesterday on my Nexus 5 with our app still on it, registered with registration id APA91bGuhx1EvYrbAUiV4v4NDAhZWko6qcttO4PtouS-To_dX-F9vDaQ1I-Br7cg8Qv1yTflSfu3KG6crjIH7KrFC7yTpOGQr44EFsr1DLgZX5OCnqT71dJKOzyu-f1dZz4mHmRr1pWOAhYOvypc7kze9eJfyFcuQU4Zr64snxBQmUC-Kk9dHe8. After 5.1 was installed, I installed our app again, and got registration id APA91bGsDV5GjB6kw7i6tz2qGMp9boHnQb66BctNsRGvkLRYKnvucspvLPxHGuCuWFSMT_cLiVjRP9igo0QVi-Fe3jtHXpqGeiBrO3bbm8aaODrtRIU36PQNOX9Ep7D6LFziGUZB69DWXWdJa-bMACQElAPeK7Wng_5-mwPz0gXPpAJLyluVa1o. The thing is, the old registration id still returns ACK, even though it technically doesn't exist anymore. Shouldn't your servers determine it doesn't exist and return a NACK instead? I tested it again right now and it still returns ACK.
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/41a09c62-b779-4356-9fde-8a678d908751%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/0fbcbf94-5fca-4381-8646-f573cd83f1f7%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/8b1b525d-efc4-4fef-940f-962855235738%40googlegroups.com.
AFAIK we do not send delivery receipts on message expiration.
A possible solution is for the app to periodically contact the app server - if you did not hear from yourapp in 4 weeks, you can assume either long vacation or phone was factory reset. We are looking for waysto simplify this - but factory reset is very tricky to detect given the constraints.
On Friday, March 20, 2015 at 12:41:49 AM UTC+2, Costin Manolache wrote:AFAIK we do not send delivery receipts on message expiration.So in that case we wouldn't receive any delivery receipt at all I presume.
A possible solution is for the app to periodically contact the app server - if you did not hear from yourapp in 4 weeks, you can assume either long vacation or phone was factory reset. We are looking for waysto simplify this - but factory reset is very tricky to detect given the constraints.Good idea. Would've liked a built-in solution, but will look into that. Hope you guys will find a solution even for this use case.Anyhow, thanks for all the answers. Hope they will help other as well.
--CostinOn Thu, Mar 19, 2015 at 2:01 PM, Bogdan Zurac <bogdan...@gmail.com> wrote:Also, just for posterity and for other users searching for this issue, if we request delivery receipts for our messages, what will happen in this case?
On Wednesday, March 11, 2015 at 2:19:44 PM UTC+2, Bogdan Zurac wrote:Hello again.I've flashed the 5.1 image yesterday on my Nexus 5 with our app still on it, registered with registration id APA91bGuhx1EvYrbAUiV4v4NDAhZWko6qcttO4PtouS-To_dX-F9vDaQ1I-Br7cg8Qv1yTflSfu3KG6crjIH7KrFC7yTpOGQr44EFsr1DLgZX5OCnqT71dJKOzyu-f1dZz4mHmRr1pWOAhYOvypc7kze9eJfyFcuQU4Zr64snxBQmUC-Kk9dHe8. After 5.1 was installed, I installed our app again, and got registration id APA91bGsDV5GjB6kw7i6tz2qGMp9boHnQb66BctNsRGvkLRYKnvucspvLPxHGuCuWFSMT_cLiVjRP9igo0QVi-Fe3jtHXpqGeiBrO3bbm8aaODrtRIU36PQNOX9Ep7D6LFziGUZB69DWXWdJa-bMACQElAPeK7Wng_5-mwPz0gXPpAJLyluVa1o. The thing is, the old registration id still returns ACK, even though it technically doesn't exist anymore. Shouldn't your servers determine it doesn't exist and return a NACK instead? I tested it again right now and it still returns ACK.To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/8b1b525d-efc4-4fef-940f-962855235738%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/d60154ba-d7f5-4f9b-a6d9-e696ed2fa5b8%40googlegroups.com.