Unfortunatelly it do not help :-/. If I do not write this part of code and use another, it will always close the app then :-/
Prevent from closing the app
Dual screen to show data differently - IONIC v4
yes Indeed, Each screen should have it’s own design. For example from my side screen there should be some buttons which I press and functionality will perform on the other screen.
Ion-card-content
Hi,
im pretty new to ionic framework. im using ionic 4.
how do scroll the contents in ion-card-content only.
i dont want to scroll the whole ion-card, only ion-card-content should be scroll able. ion-card-content will have a ion-label or ion-text.
please suggest me.
Regards
Dual screen to show data differently - IONIC v4
My question is around having one app which can control two monitors(if that’s possible in real scenario).
If you want to involve two apps then how can we run two apps on both of the monitors of single system !?
Unable to take a screenshot of InAppBrowser
Did you solve the issue?
Get Geolocation when app is killed ionic ionic-v3
Alredy did that but no luck
How to integrate Epson Android Sdk in Ionic for Bluetooth printing
no the proper answer not found yet but yes i am able to print via Bluetooth printer(not work as per expectation)
just follow this thread. it has all thing you need.
Ionic Android9 and SDK 28 upgration failed from old version android6.3 ionic2.2.1 and sdk-26
We build the ionic app with android version 6.3 and sdk 26, ionic 2.2.1. we are trying to upgrade android version 9 and sdk28 for latest play store policy, we are getting error like manifest files missed
but manifest file is there inside app directory, before that manifest file was created inside platform/android/manifest like that
Now for SDK28 platform/android/app/manifest like that it’s there it’s giving error like manifest undefined
Let’s Me help on this guys
Onesignal push notification
Hi all,
I need to configure my app to receive only segmented (or category) notification but I don’t understand how can I do it. Could you please help me?
var notificationReceidedCallback = function (jsonData) {
console.log('notificationReceidedCallback: ' + JSON.stringify(jsonData));
};
var notificationOpenedCallback = function (jsonData) {
console.log('notificationOpenedCallback: ' + JSON.stringify(jsonData));
};
window["plugins"].OneSignal
.startInit(FIREBASE_APP_ID, FIREBASE_SENDER_ID)
.handleNotificationOpened(notificationOpenedCallback)
.handleNotificationReceived(notificationReceidedCallback)
.endInit();
Thanks
iOS Device Debugging
I have just purchased a Mac to allow me to deploy my application to the Apple Store and have no experience of this OS so everything is a learning exercise at the moment.
I have managed to get my app building and I can even open it up in X-Code and I can deploy to a simulator or an Apple device connected to my machine via a USB lead.
I simply cannot get debugging working, after using VSCode with Android on a Windows machine that process is great and works faultlessly with the Apple environment it seems to be a right mess!
I don’t get any typescript files appearing in my Resources window in Safari and I don’t get any errors or console messages appearing either.
Can anybody help me out here, my app is failing but I have no way of debugging what is going on???
iOS Device Debugging
You could run the app on a simulator and then open Safari -> Develop -> “simulator name” -> localhost . Web Inspector should open up which behaves similarly to Chrome developer tools. Hope this is helpful.
Ionic select CompareWith
compareWith is not properly working for multiselect select. I not sure whether I’m using it properly or not . Kindly any one have knowledge in that help me. Thanks in advance
<ion-select multiple [compareWith]=“compareWithFn” name=“myLanguage” [(ngModel)]=“myLanguage”>
<ion-select-option *ngFor=“let l of languages” [value]=“l.id”>
{{ l.name }}
TS:
compareWith: (o1: any, o2: any) => boolean;
this.compareWith = this.compareWithFn;
compareWithFn=(o1, o2) =>{
return o1 === o2;
};
FCM notifications on ionic 3 issue
Hello,
Does anybody have a good way / plugin of adding FCM notifications to an Ionic 3 project ?
Recently, after some updates, I started having this error during compilation:
Dependency failing: com.google.firebase:firebase-messaging:19.0.1 -> com.google.firebase:firebase-iid@[19.0.1], but fire
base-iid version was 20.0.2.
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
– Project ‘app’ depends onto com.google.firebase:firebase-messaging@19.+
– Project ‘app’ depends onto com.google.android.gms:play-services-measurement-api@17.2.2
– Project ‘app’ depends onto com.google.android.gms:play-services-tagmanager@16.0.8
– Project ‘app’ depends onto com.google.firebase:firebase-perf@18.+
– Project ‘app’ depends onto com.google.firebase:firebase-iid@20.0.2
– Project ‘app’ depends onto com.google.firebase:firebase-core@17.+
– Project ‘app’ depends onto com.google.android.gms:play-services-tagmanager@16.+
– Project ‘app’ depends onto com.google.firebase:firebase-config@18.0.0
– Project ‘app’ depends onto com.google.firebase:firebase-config@18.+
– Project ‘app’ depends onto com.google.android.gms:play-services-tagmanager-api@16.0.8
– Project ‘app’ depends onto com.google.firebase:firebase-core@17.2.2
– Project ‘app’ depends onto com.google.firebase:firebase-analytics@17.2.2
– Project ‘app’ depends onto com.google.firebase:firebase-perf@18.0.1
– Project ‘app’ depends onto com.google.firebase:firebase-messaging@19.0.1
I am using the script from here:
Thank you!
Ionic background geolocation getting problem
npm ERR! code ENOLOCAL
npm ERR! Could not install from “@mauron85/cordova-plugin-background-geolocation@~3.1.0” as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
Run Ionic 4 project on another computer
Hello,
The disk on my computer failed and I had to get it replaced.
Fortunately I got all my data back. Unfortunately I did not back up my project on github. Now I am trying to run my project with my new disk, and is not working. In hindsight I see I should have been using github, but live and learn.
Can someone detail the process to get my project up and running again?
Can i call LifeCycle methods in Refresh function
Hello
I have a page on which list of people in the array will display if I removed any of them the array is getting updated to reflect that change I’m using DoRefresh function to refresh the page. To update the array i’m using several functions and I wrote them in the IonviewWillenter method. if i’m calling this ionviewillenter in my dorefresh function the list is getting updated but the previous values are not going . to remove the previous values what should i do or there is any other method of refreshing
doRefresh(event) {
console.log('Begin async operation');
setTimeout(() => {
this.ionViewWillEnter();
console.log('Async operation has ended');
event.target.complete();
}, 2000);
}
ionViewWillEnter() {
this.followers();
this.getuserfollowing();
setTimeout(() => {
console.log('set timeout');
if (this.hasfollowers == true && this.hasfollowing == true) {
this.getstats();
}
}, 1000);
}
``
this is my code ![Screenshot (21)|690x388](upload://f4BCzJDXxaNlcLc7lu4Aq09jFa4.png)
Run Ionic 4 project on another computer
Do the following to resolve, and you will be able to run ionic command any where
below are the steps are taken to resolve the issue.
- CMD run as Administrator and npm uninstall -g ionic cordova
- Shutdown the system, don’t restart
- Start/Boot system after sometime, removed all from TEMP folder.
- Installed the latest version of NodeJS as Administrator
- Open CMD as Administrator and updated npm install -g npm
- npm install -g ionic
- npm install -g cordova
Can i call LifeCycle methods in Refresh function
How about making “wrapper” method which you will call in ionViewWillEnter
and in doRefresh
.
Can i call LifeCycle methods in Refresh function
I tried wrapping all those in a single method but still the same issue i’m getting old values and new values on the page.
Ion Slides does not update
must add id to your slider then git the slider by add viewchild
@ViewChild(IonSlides) ionSlides: IonSlides;
deleteImage() {
…
…
this.ionSlides.removeSlides(slideIndex)
}