0perationPrivacy / VoIP

Web Base Telnyx/Twilio VoIP Interface enabling SMS, MMS and Voice calls using the providers API Keys and self-hosting the application.
https://VoIP.OperationPrivacy.com
GNU General Public License v3.0
249 stars 421 forks source link

PWA dynamic directory path #78

Open 0perationPrivacy opened 3 years ago

0perationPrivacy commented 3 years ago

With the random/custom directory path, the function on mobile to Add to Home Screen does not add the directory as it's statically definded in the manifest file. This gives an error when you open the PWA as it's not taking into account your custom directory.

ref: https://technowhisp.com/dynamic-pwa-manifest/

noteloni commented 3 years ago

Related, but when adding a custom 'APPDIRECTORY' environment variable, it just keeps returning 404?

0perationPrivacy commented 3 years ago

Related, but when adding a custom 'APPDIRECTORY' environment variable, it just keeps returning 404?

This issue is almost always because of caching. I faced it as well. Try a different browser, incognito mode and enter the URL with the sub-directory. Without the sub-directory in the path, it will always give a 404 when that variable is configured.

When you set the variable in Heroku, wait 30 seconds, then try the new URI in a clean browser. Let me know if that worked.