question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Navigation/routes fail to change when building capacitor app for iOS

See original GitHub issue

Describe the bug When developing using capacitor on iOS application runs properly, but when built navigation fails to work. Once logged in I see the notification and changes in the drawer and nav bar, but the redirect to /home fails and no links in my drawer will work when clicked.

Codepen/jsFiddle/Codesandbox (required) I am prohibited from directly sharing code/repo by my employer, but can share any logs or details outside of such.

To Reproduce Steps to reproduce the behavior:

  1. after installing capacitor, run quasar build -m capacitor -T ios --ide

Expected behavior Route should automatically change to /home once logged in. Navigation links should change views.

Screenshots If applicable, add screenshots to help explain your problem.

Platform (please complete the following information): Quasar Version: 1.15.3 and 1.15.4 @quasar/app Version: 2.1.14 and 2.1.15 Quasar mode: [ ] SPA [ ] SSR [ ] PWA [ ] Electron [ ] Cordova [x] Capacitor [ ] BEX Tested on: [ ] SPA [ ] SSR [ ] PWA [ ] Electron [ ] Cordova [x] Capacitor [ ] BEX OS: macOS 11.2.1 Node: 14.15.4 NPM: 7.5.4 Yarn: Browsers: iOS: 11.0 Android: Electron:

Additional context user g_holt at this link: https://forum.quasar-framework.org/topic/7843/capacitor-routes-won-t-change-when-building-ios-applicaiton said the following (I am unsure where he got this from, and may not be the case for me):

“I’m using router hash mode and on initial load the url is capacitor://localhost# instead of capacitor://localhost/#. So there is no trailing slash initially which breaks things. Sometimes when I navigate around this gets corrected. I tried setting PUBLIC_PATH=capacitor://localhost/ but it doesn’t seem to work.”

The only error I see within xcode is: 2021-02-22 13:40:45.122741-0500 App[12125:127986] API error: <_UIKBCompatInputView: 0x7fe4c85096a0; frame = (0 0; 0 0); layer = <CALayer: 0x6000022e0e00>> returned 0 width, assuming UIViewNoIntrinsicMetric.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rstoenescucommented, Feb 24, 2021

Glad that u figured it out!

0reactions
JonathanSloancommented, Feb 24, 2021

My apologies, I have discovered that the issue was on my end and not yours. Another developer made changes involving routing that flew under the radar. Thank you for your assistance! Shall I close the issue, or you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS Troubleshooting Guide | Capacitor Documentation
Cleaning and rebuilding can fix a number of build issues. Navigate to Product -> Clean Build Folder in the Xcode menu to clean...
Read more >
App Capacitor Plugin API
The App API handles high level App state and events.For example, this API emits events when the app enters and leaves the foreground,...
Read more >
Capacitor iOS Plugin Guide
Capacitor iOS Plugin Guide. Building Capacitor plugins for iOS involves writing Swift (or Objective-C) to interface with Apple's iOS SDKs.
Read more >
Capacitor Configuration | Capacitor Documentation
This is also known as the Bundle ID in iOS and the Application ID in ... The build configuration (as defined by the...
Read more >
Geolocation Capacitor Plugin API
The first two permissions ask for location data, both fine and coarse, and the last line is optional but necessary if your app...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found