Quantcast
Channel: Ionic Forum - Latest posts
Browsing all 230074 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Capacitor Network Bug? Problem? Help Me

I personally would change Vite back to using defaults which is the dist folder by removing root and build.outDir then change your Capacitor config setting webDir to dist. Android doesn’t listen to the...

View Article


Capacitor Network Bug? Problem? Help Me

Thank you very much! I will test this idea right now and review the folder configuration.

View Article


Redirect back to the Ionic app

Hi all I am working on a project using the BFF (backend for frontend). So for web application, it works pretty smoothly, we navigate the user to the auth server (just by using...

View Article

Image may be NSFW.
Clik here to view.

Redirect back to the Ionic app

You say you are using Ionic as a wrapper. You probably mean Capacitor? Are you just embedding your app from a public server in a Capacitor app, meaning loading all the assets from a public...

View Article

Redirect back to the Ionic app

Thank you, forgot to mention it. Yes, we are using capacitor and use a standard building and development process like “ionic capacitor run ios --livereload --external” and etc. for build creation. I...

View Article


Capacitor Network Bug? Problem? Help Me

I followed your advice, and now two things are happening: if I set www in the Capacitor config, the app shows up, but it doesn’t recognize the plugin. If I set dist, the plugin detects something, but...

View Article

Capacitor Network Bug? Problem? Help Me

import { defineConfig } from ‘vite’; export default defineConfig({ root: ‘www’, // Carpeta raíz de tu proyecto build: { outDir: ‘…/dist’ }, base: ‘./’, // Configura rutas relativas }); import {...

View Article

Capacitor Network Bug? Problem? Help Me

Try the below for your Vite config - removing outDir and root altogether. root defaults to the current directory and outDir is relative to root. So without setting them explicitly, the dist folder...

View Article


Image may be NSFW.
Clik here to view.

Capacitor Network Bug? Problem? Help Me

Here is my workflow: I develop in Noodl, which recommends exporting to www. From there, I follow the normal route with Capacitor and Vite. Now, I implemented the code you gave me, and since it’s not...

View Article


Capacitor Network Bug? Problem? Help Me

Thanks, that screenshot is very helpful. The problem I see with exporting to www, is that it’s mixed in with your source files at www/src. If you want to keep it that way, then the following should...

View Article

IOS cocopods and www folder reset

Hi All, I need some advice on why this might have happened. I’ve been working on my app on a PC, uploaded it to Git, and then downloaded it onto my Mac. On my Mac, the app looked distorted. I had to...

View Article

Image may be NSFW.
Clik here to view.

Capacitor Network Bug? Problem? Help Me

twestrick: { "appId": "com.testCapacitor.app", "appName": "app-nativa", "webDir": "www/dist", "bundledWebRuntime": false } 315s-Mac-mini:App Nativa estudio$ npx cap sync [warn] The bundledWebRuntime...

View Article

Capacitor Network Bug? Problem? Help Me

Did you run npm run build (if you have this as a script) or npx vite build first? Like I said, you need the production build created first before running npx cap sync. The production build will create...

View Article


Image may be NSFW.
Clik here to view.

IOS cocopods and www folder reset

Sounds like a fluke If it’s working fine now and doesn’t keep happening I wouldn’t worry about it. Assuming your www folder is the production build/assets of your JS app, it shouldn’t be in Git....

View Article

Capacitor Network Bug? Problem? Help Me

Yes, but when I follow the steps, npm run build and then npx cap sync, I go to Android, run the app, and it shows a blank screen.

View Article


Image may be NSFW.
Clik here to view.

Capacitor Network Bug? Problem? Help Me

Sounds like progress First, make sure you have files here android/app/src/main/assets/public. This is where cap sync copies the production build from www/dist. A blank screen many times is due to a JS...

View Article

Image may be NSFW.
Clik here to view.

Capacitor Network Bug? Problem? Help Me

Yes, there is information in the path you mentioned. Now, when the Capacitor configuration was set to www, it displayed the page but didn’t recognize the plugin. In other words, it knew it was there...

View Article


Image may be NSFW.
Clik here to view.

Capacitor Network Bug? Problem? Help Me

Ok, so it is a white screen due to those JS errors. Just to confirm, you do have stuff at www/dist too? I think you are closer or at least I hope you understand the file structure a little better Can...

View Article

Image may be NSFW.
Clik here to view.

Capacitor Network Bug? Problem? Help Me

We ended up with a dist in the root and another one inside www/dist.

View Article

Capacitor Network Bug? Problem? Help Me

Right, I think the dist at the root is leftover from previous tries and can be deleted. Is this the video you are following? - https://www.youtube.com/watch?v=W44hTg8vL_g In there, the entire www...

View Article
Browsing all 230074 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>