Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

what would be the best approach to implement PWA with AEM

Avatar

Avatar
Validate 1
Level 1
ankitv12295055
Level 1

Like

1 like

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
ankitv12295055
Level 1

Like

1 like

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
ankitv12295055
Level 1

02-08-2019

Hi,

I have been following the tutorial "WKND Events for Angular and AEM SPA Editor".(https://helpx.adobe.com/experience-manager/kt/sites/using/getting-started-spa-wknd-tutorial-develop/...)

After completing the tutorial, have tried to extend the project further by adding PWA support to my angular SPA application.

After I deploy this SPA with PWA to AEM, I get the below error :-

The script resource is behind a redirect, which is disallowed.

ERROR Error: Uncaught (in promise): SecurityError: Failed to register a ServiceWorker: The script resource is behind a redirect, which is disallowed.

    at P (agilent-app.js:14586)

    at agilent-app.js:14586

    at agilent-app.js:14586

    at e.invoke (agilent-app.js:14586)

    at Object.onInvoke (agilent-app.js:14587)

    at e.invoke (agilent-app.js:14586)

    at t.run (agilent-app.js:14586)

    at agilent-app.js:14586

    at e.invokeTask (agilent-app.js:14586)

    at Object.onInvokeTask (agilent-app.js:14587)

}}

Capture.PNG

Is it possible to use the above approach with PWA instead of just SPA?

If yes, what are the changes required at angular end for AEM to support Angular PWA?

If no, then implementing PWA configurations on the AEM end is the only possibility?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,159 likes

Total Posts

6,260 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,159 likes

Total Posts

6,260 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

26-08-2019

Answers (0)