Issue:can't register service worker (WEB sdk)

Hey All,

I'm trying to integrate UA with my VueJS App, and I keep getting this error when i'm trying to register:

{

  1. canRegister: true
  2. channel: null
  3. isSupported: true
  4. onchannel: (...)
  5. onpush: (...)
  6. ontags: (...)
  7. _workerRegistration: Promise
    1. [[PromiseStatus]]: "rejected"
    2. [[PromiseValue]]: DOMException
      1. code: 18
      2. message: "Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/html')."
      3. name: "SecurityError" .                }

does someone has an idea how can I solve it?

Thanks.

Didn't find what you were looking for?

New post

Comments

1 comment

  • Hi Itzhak,

    There is an example of the MIME type error and its solution in Stackoverflow.

    Can you have a look and see if that helps?

    Kind regards,
    Chilun Liu
    Senior Technical Support Engineer
    Urban Airship

    25 Lavington Street | London | SE1 0NZ
    Portland | San Francisco | London | New York | Gurgaon

    Comment actions Permalink
    0

Please sign in to leave a comment.