forked from trent_larson/crowd-funder-for-time-pwa
docs: add notes on iOS installs & use of window.location.href
This commit is contained in:
@@ -1156,6 +1156,9 @@ gem_path=$(which gem)
|
|||||||
shortened_path="${gem_path:h:h}"
|
shortened_path="${gem_path:h:h}"
|
||||||
export GEM_HOME=$shortened_path
|
export GEM_HOME=$shortened_path
|
||||||
export GEM_PATH=$shortened_path
|
export GEM_PATH=$shortened_path
|
||||||
|
|
||||||
|
cd ios/App
|
||||||
|
pod install
|
||||||
```
|
```
|
||||||
|
|
||||||
##### 1. Bump the version in package.json for `MARKETING_VERSION`, then `grep CURRENT_PROJECT_VERSION ios/App/App.xcodeproj/project.pbxproj` and add 1 for the numbered version;
|
##### 1. Bump the version in package.json for `MARKETING_VERSION`, then `grep CURRENT_PROJECT_VERSION ios/App/App.xcodeproj/project.pbxproj` and add 1 for the numbered version;
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ export default class DeepLinkRedirectView extends Vue {
|
|||||||
const redirectUrl = this.isMobile ? this.deepLinkUrl : this.webUrl;
|
const redirectUrl = this.isMobile ? this.deepLinkUrl : this.webUrl;
|
||||||
|
|
||||||
// Method 1: Try window.location.href (works on most browsers)
|
// Method 1: Try window.location.href (works on most browsers)
|
||||||
window.location.href = redirectUrl;
|
window.location.href = redirectUrl; // Do not use this on native apps! The channel to Capacitor gets messed up.
|
||||||
|
|
||||||
// Method 2: Fallback - create and click a link element
|
// Method 2: Fallback - create and click a link element
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user