PWA getting installed in chrome broweser but not in firfox - google-chrome

PWA is getting installed from chrome broswer but not in firfox.
in firfox its showing start_url is outside the scope, so scope is invalid. what could be the issue?
please help!!
manifest.json file
{
"name": "App Installation issue",
"short_name": "App Installation issue",
"description": "App Installation issue",
"start_url": "d725eaf0-81db-40fe-8b0e-39fe53fa05bb",
"scope": "/app/d725eaf0-81db-40fe-8b0e-39fe53fa05bb",
"display": "standalone",
"background_color": "#ff00ea",
"theme_color": "#ca7f16",
"orientation": "any",
"related_applications": [
{
"platform": "webapp",
"url": "https://5450-202-43-120-104.ngrok.io/projects/vuexy-laravel-mpfg/public/d725eaf0-81db-40fe-8b0e-39fe53fa05bb/d725eaf0_81db_40fe_8b0e_39fe53fa05bb_manifest.json"
}
],
"icons": [
{
"src": "https://5450-202-43-120-104.ngrok.io/projects/vuexy-laravel-mpfg/public/storage/uploads/1/1660912953_architecture.png",
"type": "image/png",
"sizes": "512x512",
"purpose": "any"
}
]
}

Related

Is it possible to update the manifest.json file from your app

I am new to coding and am using create-react-app to build my first app, and was wondering if it is possible to update the manifest.json file from within my app.
For example, if my folder structure is:
public
>index.hmtl
>manifest.json
src
>app.js
>index.js
would it be possible for me to write some code to update the contents of manifest.json? Or would that not work because it is not in the src folder?
The current contents of the manifest.json file are this:
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
But let's say I wanted to change the "icons" array to this:
"icons": [
{
"firstName": "Jon",
"lastName": "Smith",
"id": "1"
}
Is that possible?

my manifest.json file contains an error that I can't find

I'm writing a very simple Chrome extension and when I try to load it as an unpacked extension, I get the following error:
Manifest is not valid JSON. Line: 16, column: 2, Syntax error.
{
"manifest_version": 2,
"name": "Backchannel",
"description": "",
"version": "1.0",
"icons": {
"128": "128.png"
},
"app": {
"urls": [
"http://backchannel.glitch.me/"
],
"launch": {
"web_url”: “http://backchannel.glitch.me/"
}
},
"permissions": [
"unlimitedStorage",
"notifications"
]
}

Invalid manifest message by launching

By launching my extension I get this message:
Invalid manifest
My manifest file is loaded. Here is it:
{
"name": "GoogleMapToContact",
"short_name": "GoogleMTC",
"description": "Save Google Geopoints to Google Contact",
"manifest_version": 2,
"version": "1.0.1",
"start_url": "/?homescreen=1",
"background_color": "#000000",
"theme_color": "#0f4a73",
"icons": {
"src": "map.png",
"sizes": "256x256",
"type": "image/png"
}
}
You have incorrect tags in your manifest.json. First 4 lines are OK.
Bad tags, that are not allowed in extensions manifest, are:
start_url (do you want to specify you entry point?)
background_color (it should be done in your popup file)
theme_color
Icons are written in slightly wrong way :) Here is suggested file
{
"name": "GoogleMapToContact",
"short_name": "GoogleMTC",
"description": "Save Google Geopoints to Google Contact",
"manifest_version": 2,
"version": "1.0.1",
"browser_action": {
"default_icon": "map.png",
"default_popup": "popup.html"
},
"icons": {
"16": "map16x16.png"
}
}

I get Invalid manifest: unknown fields: [api_console_project_id] when trying to publish app

I get his error when trying to save this manifest file:
Invalid manifest: unknown fields: [api_console_project_id]
My manifest file is
{
"timeZone": "America/New_York",
"dependencies": {
},
"exceptionLogging": "STACKDRIVER",
"api_console_project_id":"my-project-ID"
}
I've enabled and configured the google store SDK
Don't know if this helps buy my standalone manifests look something like this.
{
"update_url": "https://clients2.google.com/service/update2/crx",
"manifest_version": 2,
"name": "Exchange",
"description": "Link to...",
"version": "2.3",
"icons": {
"128": "128.png"
},
"container" : ["DOMAIN_INSTALLABLE"],
"api_console_project_id": "NOT_EASY_TO_FIND_PROJECT_ID",
"app": {
"urls": [
"https://script.google.com/a/macros/ilavietnam.edu.vn/s/PUBLISHED_ID/exec"
],
"launch": {
"web_url": "https://script.google.com/a/macros/ilavietnam.edu.vn/s/AKfycbx7Xj0EWjLyTDpzi44dFRw0zePAhvn-Qn4OpwaLpH5SjUNKaWA/exec"
}
},
"permissions": [
"unlimitedStorage",
"notifications"
]
}
Also the Market Place SDK API needs to be turned on.

alert/confirm doesn't work in chrome app - missing config?

I made a chrome app to display my web by webview tag, but the js API alert()/confirm() doesn't work. That made me wondering. Chrome app needs to config something to support confirm?
this is my manifest.json:
{
"app": {
"background": {
"scripts": ["background.js"]
}
},
"manifest_version": 2,
"name": "Performance Monitor",
"version": "1.0",
"description": "A performance monitor to show cpu and memory status.",
"icons": {
"16": "img/ccloud.png",
"48": "img/ccloud.png",
"128": "img/ccloud.png"
},
"permissions": [
"webview"
],
"webview": {
"partitions": [
{
"name": "static",
"accessible_resources": ["header.html", "footer.html", "static.png"]
},
{
"name": "trusted*",
"accessible_resources": ["local_*.html", "*.png", "*.js"]
},
{
"name": "trusted-audio",
"accessible_resources": ["*.mp3"]
}
]
}
}