It may still work well on Firefox for Android, but unfortunately it will require a little more work to be compatible. Is your extension only targeting Firefox or are you also aiming to be compatible with Chrome(ium)?
If you’re only targeting Firefox, you may be able to make a couple small tweaks to your manifest to get Android compatibility:
- Use
"manifest_version": 2
- Replace
"background": { "service_worker": "FILE" }
with "background": { "scripts": ["FILE"], persistent: false }
- Move
"host_permissions"
entries into the "permissions"
array.
From there, run web-ext lint
or try loading it in Firefox to see if there are any other errors that need to be tweaked.
If you are targeting Chrome compatibility, you’ll likely want to set up a build step to create two different builds of your extensions. One version will use the current manifest.json and will be uploaded to Chrome’s store. The other version will use a new manifest.json as described above and be uploaded to AMO.