Or maybe there are errors inside the service worker.

Le jeu. 7 févr. 2019 à 07:01, f-end <[email protected]> a écrit :

> Can you give complete log. One of my first doubt is the file is not
> available and you are getting 404. Other reason could be service worker is
> only allowed on https, and localhost is only exempted from https. If your
> site is not https and you are not running it on localhost then also it will
> not register.
>
> On Tuesday, February 5, 2019 at 12:27:08 PM UTC+5:30, Komal Shah wrote:
>>
>> The file is not getting loaded in Chrom Dev tools -> source
>> Should i add the serviceworker.js reference in index.html?
>>
>> On Tue, Feb 5, 2019 at 12:20 PM f-end <[email protected]> wrote:
>>
>>> Did you tried access Serviceworker.js in browser directly? for example
>>> if you are referring .js as "/Serviceworker.js" then try
>>> http://localost:5000/Serviceworker.js and see if you can access.
>>> localhost:5000 depends on your server and port.
>>>
>>> Thanks
>>> Sandeep
>>>
>>> On Tuesday, February 5, 2019 at 12:12:05 PM UTC+5:30, Komal Shah wrote:
>>>>
>>>> Hi,
>>>> I am trying to register Serviceworker.js in Ionic 4 project whose
>>>> location is same as index.html and main.ts.But i am not able to registered
>>>> it.
>>>> Error that is displayed is :
>>>> Failed to register a ServiceWorker: A bad HTTP response code (404) was
>>>> received when fetching the script.
>>>>
>>>> Regards
>>>> Komal
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Angular and AngularJS discussion" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/angular.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Angular and AngularJS discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to