ionic-framework

Ionic 5 - How to replace default icon and splash screen image and generate resources

青春壹個敷衍的年華 提交于 2021-01-20 16:40:14
问题 I recently started using ionic 6 and capacitor(not cordova), and I don't know how to replace its default application icon and splash screen. Is there any way to do it and generate resources using ionic capacitor cli like what we were doing with cordova(ionic cordova resources android)? where should I replace icon and splash images with my own? after adding android platform using capacitor(ionic cap add android), it generates icon and splash images in android resources, but I don't know how to

UIWebView error submiting ionic app to Apple

妖精的绣舞 提交于 2021-01-20 08:55:38
问题 I have developed an ionic app that is for Android and iOS. When I try to submit the application to iOS I always receive the same error. I searched in my entire project and I can't find any reference to UIWebView. I have followed this link to update all my plugins. I added this code to my config.xml: <preference name="WKWebViewOnly" value="true" /> <feature name="CDVWKWebViewEngine"> <param name="ios-package" value="CDVWKWebViewEngine" /> </feature> <preference name="CordovaWebViewEngine"

UIWebView error submiting ionic app to Apple

。_饼干妹妹 提交于 2021-01-20 08:51:58
问题 I have developed an ionic app that is for Android and iOS. When I try to submit the application to iOS I always receive the same error. I searched in my entire project and I can't find any reference to UIWebView. I have followed this link to update all my plugins. I added this code to my config.xml: <preference name="WKWebViewOnly" value="true" /> <feature name="CDVWKWebViewEngine"> <param name="ios-package" value="CDVWKWebViewEngine" /> </feature> <preference name="CordovaWebViewEngine"

UIWebView error submiting ionic app to Apple

孤者浪人 提交于 2021-01-20 08:51:22
问题 I have developed an ionic app that is for Android and iOS. When I try to submit the application to iOS I always receive the same error. I searched in my entire project and I can't find any reference to UIWebView. I have followed this link to update all my plugins. I added this code to my config.xml: <preference name="WKWebViewOnly" value="true" /> <feature name="CDVWKWebViewEngine"> <param name="ios-package" value="CDVWKWebViewEngine" /> </feature> <preference name="CordovaWebViewEngine"

Ionic 5/Capacitor ERR_CLEARTEXT_NOT_PERMITTED in Android

点点圈 提交于 2021-01-15 19:46:53
问题 I'm using Capacitor for building the Ionic app. These are the following commands run in order to open the android app in Android Studio. npx cap add android ionic build npx cap copy npx cap open android In Android Studio, I ran the build and click on Run after which I see the error net::ERR_CLEARTEXT_NOT_PERMITTED in my device. I have seen various posts having the same error but those are with Cordova build. In my case, I'm not using Cordova for preparing the android app. Here are few

Ionic 5/Capacitor ERR_CLEARTEXT_NOT_PERMITTED in Android

青春壹個敷衍的年華 提交于 2021-01-15 19:43:06
问题 I'm using Capacitor for building the Ionic app. These are the following commands run in order to open the android app in Android Studio. npx cap add android ionic build npx cap copy npx cap open android In Android Studio, I ran the build and click on Run after which I see the error net::ERR_CLEARTEXT_NOT_PERMITTED in my device. I have seen various posts having the same error but those are with Cordova build. In my case, I'm not using Cordova for preparing the android app. Here are few

I'm unable to get Device token in an ionic app as a result of Cannot read property 'onTokenRefresh' of undefined

泄露秘密 提交于 2021-01-07 02:46:06
问题 I followed two tutorials that suggested installed the following: ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated npm install @ionic-native/fcm I kept getting errors after installing to a device that said the fcm plugin isn't installed so I viewed https://www.npmjs.com/package/cordova-plugin-fcm-with-dependecy-updated#fcmontokenrefresh site that suggested uninstalling npm uninstall @ionic-native/fcm # Ionic support is included and conflicts with @ionic-native's

I'm unable to get Device token in an ionic app as a result of Cannot read property 'onTokenRefresh' of undefined

徘徊边缘 提交于 2021-01-07 02:45:25
问题 I followed two tutorials that suggested installed the following: ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated npm install @ionic-native/fcm I kept getting errors after installing to a device that said the fcm plugin isn't installed so I viewed https://www.npmjs.com/package/cordova-plugin-fcm-with-dependecy-updated#fcmontokenrefresh site that suggested uninstalling npm uninstall @ionic-native/fcm # Ionic support is included and conflicts with @ionic-native's

How would I update my ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables on a MAC to build Android

夙愿已清 提交于 2021-01-07 02:19:54
问题 I'm building an Ionic Cordova cross platform app. When i run ionic cordova build android I get the following error. cordova-android-support-gradle-release: Android platform: V7+ cordova-plugin-androidx-adapter: Processed 65 source files in 1452ms Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=undefined (recommended setting) ANDROID_HOME=/Users/anonymous/Library/Android/sdk (DEPRECATED) Requirements check failed for JDK 8 ('1.8.*')! Detected version: 15.0.1 Check your ANDROID_SDK

CordovaError: Failed to find 'JAVA_HOME' environment variable. Try setting it manually

拥有回忆 提交于 2021-01-07 01:13:10
问题 I get a ionic project from a person, and I want to debug it in a real android device. I use this command: ionic cordova run android --device --verbose And in the end I get these error messages: Preparing Firebase on Android No scripts found for hook "before_compile". Failed to find 'JAVA_HOME' environment variable. Try setting it manually. CordovaError: Failed to find 'JAVA_HOME' environment variable. Try setting it manually. I have JAVA_HOME set, indeed if I do echo $JAVA_HOME I get: /usr