I guess, it is environment issue, as i have created new component same your code and i have old working code, but both having same issue now only on android . As i haven’t updated any library on my end so not sure what triggered it.
Ionic 4 , side menu not working
Ionic 4 , side menu not working
Try if this helps: https://github.com/ionic-team/ionic/issues/19272
Ionic cordova failed to run android
did you changed JDK version?
Ionic cordova failed to run android
yes I have change the jdk version to 1.8
Capacitor build android/ios scripts
Is there a command to be able to generate the Android (APK) and IOS builds without using the IDE (Xcode or Android studio).
We have the build of our app automated running 2 parallel scripts, where we sign the apps using the shell scripts. But with Capacitor I am unable to make an APK or IPA. There is no build command (npx cap build ios)
Self-signed certificate https doesnt work in release build
Hey guys, sorry to reopen: I’ve tried the cordova-certificate-plugin trustUnsecureCerts() but I’m not able to use that in production: actually accessing cordova breaks the application, in fact the trustUnsecureCerts is undefined… Somebody has been experiencing this?
Ionic cordova failed to run android
So got any other error?
Admob interstitial doesn't show on Android
Wait for 1-2 days, and banner ads is working?
Variables are lost after 1 hour
The variables declared in memory at file ts will be delete…
You can try use LocalStorare or IonicStorage
Why we are having IONIC
I also know Ionic is not an IDE, please try to understand the context, you cannot deny, it takes hell lot of time to build, if any error in the plugin or anything missing, we will know only after we build the app. And it is not just Facebook, many plugins behaves like that. And so far as much much easier is concerned, well coding in any language is easy, it is the final packaging that we do ,must be an easier process. All in all, waste of time and effort building apps in Ionic in this modern era of technology. Thats what I feel. Now we can go on defend Ionic, but the ground reality will not change. Even in the documentation, plugin installation, if you follow the exact process, next thing you will find error in building. I have such errors frequently. If we are not able to give a stable plugin then whats the point in having this language. Waste of time
Ionic3 imagepicker open gallery ERROR:((
Hii Everyone, I encountered an error, help me:))?
openGallery() {
console.log("oepn galery");
this.loadfoto = 0;
if (this.platform.is('android')) {
console.log("if androidk");
const options: ImagePickerOptions = {
quality: 80,
}
let fotoloading: Loading = this.loading.create({
content: 'Please wait...'
});
console.log("this.imagepicert");
try {
console.log("try");
//close app in this line ://
this.imagePicker.getPictures(options).then(results => {
console.log("image iii");
this.galleryimagesize = results.length;
for (var i = 0; i < results.length; i++) {
console.log("for için");
this.base64.encodeFile(results[i]).then((base64File: string) => {
var re = 'data:image/*;charset=utf-8;base64,';
base64File = base64File.replace(re, "");
let attachment: AttachmentObj = {
field: "resimler",
parentType: "Sehitaile",
role: "Attachment",
name: "image.jpg",
file: 'data:image/jpeg;base64,' + base64File,
type: "image/jpeg",
size: base64File.length,
};
this.attachments.push(attachment);
})
}
fotoloading.dismiss();
this.attachmentsize = this.attachmentsize + this.galleryimagesize;
this.fotoyukleniyormu = true;
}, (err) => {
console.log(err)
});
} catch (e) {
console.log(e);
}
}
else {
const options: ImagePickerOptions = {
maximumImagesCount: 3 - this.attachmentsize,
quality: 70,
}
this.imagePicker.getPictures(options).then(results => {
this.galleryimagesize = results.length;
for (var i = 0; i < results.length; i++) {
var itemSrc = results[i].replace(/^file:\/\//, '');
this.base64.encodeFile(itemSrc).then((base64File: string) => {
this.imagetype = base64File.substring(5, 14);
if (this.imagetype == "image/jpe")
this.imagetype = "image/jpeg";
else
this.imagetype = "image/png";
let attachment: AttachmentObj = {
field: "resimler",
parentType: "Sehitaile",
role: "Attachment",
name: "image.jpg",
file: base64File,
type: this.imagetype,
size: base64File.length,
};
this.attachments.push(attachment);
})
}
this.attachmentsize = this.attachmentsize + this.galleryimagesize;
this.fotoyukleniyormu = true;
}, (err) => {
console.log(err)
});
}
}
I want to select photo from gallery, it’s okey ios, but android is not okey:///
" this.imagePicker.getPictures(options).then(results => { " <<— the application closes when it comes to this line. no error no warning. just close app
when an intermediate application closed, I received a notification that says “background tracking enabled”.
how should i proceed, can you help me.
Capacitor platform ready event
Simple question. When exclusively using Capacitor in an Ionic-Angular project. Do you need to wait for the platform.ready promise to resolve befor hiding the splashscreen en showing the statusbar?
Or can you directly put the splashScreen.hide() in the constructor of app.component.ts (not wrapped in the platform ready promise)
If so, is there any use for the platform.ready promise except for backwards compatibility reasons towards Cordova?
How to combine react-redux connect() and withIonLifeCycle() in @Ionic/react?
Thanks @it.hieund
Does not work for me
export default withIonLifeCycle( connect( stateMapToProps, { fetchCategoriesAction } ) (Categories) );
Error…
Check the render method of Context.Consumer
.
in ConnectFunction (created by Context.Consumer)
in IonLifeCycle (created by Context.Consumer)…
I saw you use hooks, Can you let me know where did you find documentation about Ionic Hooks, I can’t find it. Thanks
Anyone tried MS AppCenter with Ionic?
@edriven Could you explain more which part is working and which does not? I m still not able to integrate AppCenter from Ionic4
I have error while installing APK in android app
{"_body":{"isTrusted":true},"status":0,"ok":false,"statusText":"","headers":{},"type":3,"url":null}
Ionic 4 - How to set CSS Custom Properties dynamically
This is just what i was looking for, thank you so much!
Serve cordova plugins on Custom project
I’m trying to use cordova.js/cordova API features to interact with an internal app without actually changing the internal app (android).
I’ve started that by creating a normal Node.JS (express) application and served both, the cordova.js and also all JS files related to the cordova-plugins from “platform_www”.
After serving all the files, I could see that I basically have no “dependency” kind of errors coming from cordova.js on the browser (chrome webview).
Although when I run the application and browse to my app, I can see these alert prompts.
gap_init:3
gap:[null,“CoreAndroid”,“messageChannel”,“CoreAndroid369081780”]
gap:[null,“CoreAndroid”,“show”,“CoreAndroid369081781”]
gap:[null,“File”,“requestAllPaths”,“File369081782”]
Anyone knows how I can solve those gap
prompts alerts and successfully load the plugins?
My goal is to use the plugins on standard chrome webview.
Bug: ionic build error with google services and play services
I am not to sure how to fix this. This aways happen when I add Google+ Authentication. fcm it works but soon as I add this I get this
insert the output from ionic info here
`FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 11.6.2.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 11s
> Task :app:processDebugGoogleServices FAILED
Found play-services-identity:11.8.0, but version 11.6.2 is needed for the google-services plugin.
Found play-services-auth:11.8.0, but version 11.6.2 is needed for the google-services plugin.
20 actionable tasks: 20 executed
C:\platforms\android\gradlew: Command failed with exit code 1 Error output:
Note: C:\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemCookieManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 11.6.2.
`
How to create a button that shows/hides content on press?
Hello. I’m currently building an Ionic project for college, and since one of the pages contains a lot of text, I wanted to create some sort of button or tab that once pressed, would show the content if it was hidden or would hide them if it was visible.
Something like this:
Is there any default or external ionic component that suits this example?
How to create a button that shows/hides content on press?
This is easy…
In your ion-content add a *ngIf=“sometingTrue”
Do you set the property boolean in your code!
For not show!
<ion-content id="acesso-pendente" ion-padding="10" *ngIf="usuarioLiberado == false"> </ion-content>
For show up!
<ion-content id="acesso-pendente" ion-padding="10" *ngIf="usuarioLiberado == true"> </ion-content>