PWA installed or not? - web

I wanted to know is there a way by which we can check whether our website's PWA is installed or not by the user on the device?
I have done with the " add to home screen banner" but what if the user comes the second time and we need to check. Please help thanks in advance.

You may refer with this documentation. Be noted that if the user has installed your Progressive Web App through the old Add to Homescreen method (i.e, in anything prior to Chrome 58) then it is not possible to detect if your app is installed. Chrome added your site to the Homescreen as a bookmark, and this data was not exposed to the system.
However, if the user has installed the web app using the new Web APK functionality, it is possible to determine if your web app is installed. If you know the package name of your Web APK then you can use the context.getPackageManager().getApplicationInfo() API to determine if it is installed. Please note that this is experimental.

Related

How to test ChromeOS enterprise features during development?

I am working on a Chrome extension running on Chrome OS.
The extension needs the enterprise.hardwarePlatform permission to be able to get hardware information about the device.
The question is: How can I test my extension?
After installing the extension manually, the API to get the hardware information will not work as it needs the extension to be forced-installed by the enterprise policy.
But how to force-install the extension if it is not published in the Chrome Web Store?
Google Workspace seems to allow to refer only to published extensions in the enterprise policy. But obviously I do not want to publish the extension under development. Also I didn't find a "Web Store for development" where I could upload the extension and then refer to it from the policy.
So how to do this?
I found this question:
https://support.google.com/chrome/a/thread/107510644/how-do-i-develop-a-chrome-extension-with-enterprise-permissions?hl=en-gb
However, did not find the answer in any of the provided links. All information seem to point to publishing on Chrome Web Store first. But then would it be impossible to manually test a feature like this before publishing?
Thank you for your answers in advance.

Spartacus storefront is not loading on hybris 1905

I have installed hybris 1905 via VM.
Everything else works (B2C Accel, Hybris, HAC etc) except Spartacus store front.
The store front has a loading screen but doesn’t paint the page.
Is anything need to changed to allow the storefront to finish loading for the SPA accelerator?
Some additional information to #geffchang post (https://stackoverflow.com/a/62535976/9290007):
Take a look on the guide https://sap.github.io/spartacus-docs/building-the-spartacus-storefront-from-libraries/ to ensure, that your frontend application has correct configuration
Double check your configuration which B2cStorefrontModule is using (here you can find an example project here https://github.com/SAP/spartacus/tree/develop/projects/storefrontapp)
Take a look on Network and Console browser tabs and try to resolve all errors
You need to follow all the instructions from the Spartacus guide: https://sap.github.io/spartacus-docs/installing-sap-commerce-cloud/
This includes:
Configuring OCC Credentials
Configuring CORS

Force install Microsoft Edge extension enterprise environment

I am trying to automatically install a Microsoft Edge Extension in an enterprise managed environment: Google Chrome allow this behavior (check this post for further information), but it seems impossible to do the same for Edge (the Edge extension policy states that "The installation must be initiated and completed by the user, using only the user experience provided by Microsoft Edge and the Microsoft Store").
Edit 5/8/20
The new Microsoft Edge based on Chromium supports GPOs (cfr. https://learn.microsoft.com/en-us/deployedge/microsoft-edge-policies#extensioninstallforcelist)
I've been able to forcefully install an extension in a managed environment using this guide.
Unfortunately, when the user open Edge for the first time after the extension has been configured a popup shows up, asking him if he wants to turn the extension on or not, and right now there is no way to forcefully enable the extension.
As you've said, I think it's not yet possible. You may check this thread which also stated that installation of extensions for Microsoft Edge must be initiated and completed by the user. However, there's a suggestion to try Add-AppxPackage which adds a signed app package (.appx) to a user account. Just make sure that package is signed because otherwise Add-AppxPackage would not work.

Install Chrome extension from Chrome packaged app

I have chrome packaged app in Chrome Web Store and extension which
should communicate with app and extend its functionality.
Is there any way to automatically install extension when user
installing app from chrome store?
No, there isn't. Not even the strongest API for managing extensions, chrome.management, can install something not already installed.
I don't need to say why this would be an obviously bad idea from security perspective.
What you should do is explain why you need it, and provide a link to Web Store install page.

How to launch a chrome packaged app using a URL scheme

I have a chrome packaged app that I update form time to time - when I'm creating an update I want to send email to subscribed customers with a link the that extension -that will launch it.
Anyone knows if there is a chrome url scheme i can use?
Currently this is not possible, but there is an API proposal and an implementation being developed for a chrome-app://appid URL schema that would do pretty much what you describe.
Follow the status here
I also want to be able to do this. It seems that one possible solution is to install both an extension and a packaged app, and have the extension register a context menu that then communicates with the app, or something similar.

Resources