want to upload two files when app is installed

hello,

i want to add two files in shopify app folder when someone install my app.

i cant find any way of doing so.

several app already does that.

can anyone guide me in right direction

https://someshop.myshopify.com/apps/appname/manifest.json

will be uploaded in customer store /apps/appname/ folder when someone install our app.

help

There is no path in Shopify stores /apps/. When you say several Apps already do that, what do you mean? Can you be a little more precise about what you are trying to do.

In general, an App can add an asset to a shop by uploading a file to /assets for use in themes. Not sure what you are trying to do.Tell us more, with details and examples?

when u install any push notification they add two files in app directory

https://pushdaddy2.myshopify.com/apps/pushalert/manifest-12057.json

https://pushdaddy2.myshopify.com/apps/pushalert/sw-12057.json

Can you explain what installing a push notification means, with respect to Shopify? That is foreign lingo to me,

you install pushalert, izooto or any push notification app you will see they add two more files in app folder. one is manifest.json and other is sw.js

hope i am clear now.

The only thing possible for you is that at a Shopify URL such as myexample.myshopify.com/apps is that that is an App Proxy endpoint. You can make files available at a route you create there, like myexample.myshopify.com/apps/pushywooshy as you wish.

how and which api to use to create two files.

your reply was not clear

Any App installed in a shop can offer an App Proxy. You set that in the Extensions section of the App. You then code up the Proxy endpoint in your App to deliver content, whether that be Liquid or JSON, it is up to you. You can serve any code or files. In the theme itself, you can add Javascript to do a fetch to your endpoint, and hence get at your precious code.

Shopify explains all that here: https://help.shopify.com/en/api/guides/application-proxies

but u said it will accept only liquid file type.

we need json and js file type and the contents are dynamic so it will be different for everyone

I clearly stated that the response to a request can be Liquid yes, but it can also be JSON. You choose.

we can upload js file or not??

all push notification app upload js files