You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/03/24 18:33:40 UTC

[GitHub] [cordova-ios] breautek commented on issue #1227: Custom URL Scheme that has Dynamic URL Params

breautek commented on issue #1227:
URL: https://github.com/apache/cordova-ios/issues/1227#issuecomment-1077926233


   Schemes cannot be dynamic. Furthermore, Apple forbids any well-known protocol to be in schemes, including `https`.
   
   For client-side routing, common practice is to use a hash-based strategy in cordova apps. Pretty url strategies are desirable for traditional websites as the URL is visible but they also require a web server to properly route all urls to the same base web application to handle reloads and such.
   
   In cordova, there is no webserver, and the user cannot see the URL, so hash-based routing is generally a sufficient solution.
   
   If your QR reader expects a `https://...` url, then I don't think it's going to work in a cordova environment.
   
   So instead of using the domain name as your variables, you can use other parts of the URL as your variables, and have your application respond to URL changes via `hashchange` event & read/parses the URL.
   
   Closing this because this doesn't appear to be a bug. You can ask our [slack community](https://join.slack.com/t/cordova/shared_invite/zt-z70vy6tx-7VNulesO0Qz0Od9QV4tc1Q) for support style questions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org