You can use the mozApps.getInstalled() function to check which
functions you have installed. I.e. if your website installs a packaged
app, then your website can use mozApps.getInstalled() to check if the
packaged app was installed.

/ Jonas

On Sun, Jul 21, 2013 at 3:18 AM,  <[email protected]> wrote:
> Hi guys!
>
> I have recently finished my application, Check-in Fox, which is a foursquare 
> client for Firefox OS. I hosted the app at 
> http://checkinfox-flaki.rhcloud.com, but created a packaged version, too, 
> which can be installed from the startup screen when one opens the app from a 
> webapp-compatible device.
>
> My problem is, I had my fair share of problems with the manifest files, but 
> managed to get it working at last - after tapping the install button, the app 
> now installs on the device without any issues. My problem is, that after that 
> I can't really check if the app has been installed, as the appInstalled call 
> checks for the hosted app to be installed, not the packaged one.
>
> Is there a method to check if the packaged app has already been installed on 
> the device? The hosted app has a few glitches (maybe due to browser 
> implementation), so at the moment the packaged version provides a better user 
> experience - this would even warrant detecting an installed version & 
> launching it too - would this be possible?
>
> _______________________________________________
> dev-webapps mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-webapps
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to