capacitor

How do I set the proper path to Android Studio in Ionic/Capacitor?

[亡魂溺海] 提交于 2019-12-11 14:25:03
问题 I'm working through an Ionic/React getting-started, on my Linux Mint box. Building an Ionic application using React The first steps went well enough, but when I get to Deploying your application to iOS and Android Step 5, I get errors. The instructions: Open your project in Android Studio using the following command: npx cap open android First I got pathing errors: events.js:174 throw er; // Unhandled 'error' event ^ Error: spawn /usr/local/android-studio/bin/studio.sh ENOENT That seemed

Opening keyboard in Ionic 4 Android app moves the background image up

邮差的信 提交于 2019-12-11 05:21:01
问题 I have tried two options in my AndroidManifest.xml android:windowSoftInputMode="adjustResize" and android:windowSoftInputMode="adjustPan" With adjust adjustResize it pushes up my background image so that it looks pretty rubbish. It also allows this weird white section if you scroll down. See the 2nd and 3rd image. If I use adjustPan it looks great and fixes the problem but on devices with lower resolution inputs are hidden by the keyboard and users can't get to them as scrolling is not

Custom sound for Android Push Notification not working (FCM)

牧云@^-^@ 提交于 2019-12-10 22:24:59
问题 I have push notifications working using FCM from a cloud function. This works for both iOS and Android and displays the appropriate icon and plays a custom sound on iOS. All is working except the custom sound for Android, it simply plays the default sound. I have created a folder and added my sound file to it as follows: android\app\src\main\res\raw\mp3_example.mp3 This mp3 is 27s long. I have also tried a .wav and .aiff. I read that I may have to create a push notification channel for later

Ionic4 capacitor android livereload?

回眸只為那壹抹淺笑 提交于 2019-12-06 11:58:05
Is there posibility to run ionic4 app with capacitor on android device with livereload? I was looking for answear for a few hours now without a luck. Please help. You can do it by adding the server object to the capacitor.config.json file, just use the url of your live reload server "server": { "url": "http://192.168.1.33:8100" } You can use the ionic cli for this: ionic capacitor run android --livereload For example. Source: https://ionicframework.com/docs/cli/commands/capacitor-run You can use the following command to livereload without specifying the IP address: ionic capacitor run android

I cant retrieve data from server when I use android studio virtual emulator

好久不见. 提交于 2019-12-02 23:01:54
问题 I have an app, that works fine on browser, but i run it on the emulator it cant retrieve data from the server I got this error : polyfills.js:5601 OPTIONS http://localhost:3005/api/posts/toto net::ERR_CONNECTION_REFUSED scheduleTask @ polyfills.js:5601 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ polyfills.js:2768 onScheduleTask @ polyfills.js:2659 capacitor-runtime.js:81 ERROR TypeError: You provided 'function (error) { // TODO: send the error to remote logging

I cant retrieve data from server when I use android studio virtual emulator

不想你离开。 提交于 2019-12-02 09:31:15
I have an app, that works fine on browser, but i run it on the emulator it cant retrieve data from the server I got this error : polyfills.js:5601 OPTIONS http://localhost:3005/api/posts/toto net::ERR_CONNECTION_REFUSED scheduleTask @ polyfills.js:5601 push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask @ polyfills.js:2768 onScheduleTask @ polyfills.js:2659 capacitor-runtime.js:81 ERROR TypeError: You provided 'function (error) { // TODO: send the error to remote logging infrastructure console.error(error); // log to console instead // TODO: better job of transforming error for