Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get extension uninstall event in safari

Is there a way for a Safari browser extension to detect its own uninstallation?

I would like to send an event to Google Analytics to keep track of the uninstallment rate of my extension.

like image 546
Finkenzeller Avatar asked May 30 '12 13:05

Finkenzeller


Video Answer


1 Answers

After crawling around on the development forums, I found out that apparently Safari has no such events (unlike Chrome) or if there are any, they are undocumented (and therefore not meant to be used). I think your best bets are:

a) Request the feature via Apple's bug-reporting and feature-requesting site

b) Set up an external service that can monitor ~/Library/Safari/Extensions or the Extensions.plist file for deletion (which is probably enormously difficult, considering the security risks)

c) Keep track of the active user base instead by pinging an external service once a day or on some other interval. The deletion/inactivity rate can then be estimated by drops in activity.

like image 183
mleyfman Avatar answered Oct 31 '22 14:10

mleyfman