Jaffar Raza
Jaffar Raza

Reputation: 311

Parse.com: Can we prevent android from creating new installation records when an updated app is installed?

I am working with parse push notification in android. I am facing a problem .

I install the app on a mobile device an installation record is created in the installation table. Than i uninstall the current app and re install it again. a new installation record is created. So now i send the notification on the devices.

So on how many installation record(registered devices) notification will send?

If notification is send on two records than one notification sent is useless, because the app registered with this record is un-installed.

So how to remove the previous record from installation when i re-install the app.

iOS is not creating new installation records, but android is.

Upvotes: 3

Views: 1013

Answers (2)

Will
Will

Reputation: 824

There is ways to remove unused installations. You can use a Cloud code to do so, here is an example: Here

There is more people asking similar questions, take a look: Here

When you install an App on a Apple Device it uses the same deviceId, this is an Apple feature.

When you install an App on an Android Device it creates a deviceId, if you uninstall and install again it will create another devideId (Why? I don't know. You can find more info: Here)

Finally, there is someone here that apparently solved this problem with android using cloud code.

Another solution is to search for inactive users during a period them delete their installations. I suggest to delete an installation after 90 days without use.

Upvotes: 0

VipulKumar
VipulKumar

Reputation: 2395

Parse doesn't count the push targeted to uninstalled devices. So don't worry about that. It is dead already. I guess there is no way of removing an installation though.

Upvotes: 0

Related Questions