Setting scrollAssist and autoFocusAssist works for me. Thank you.
Scroll to the focused item input when the keyboard is up
SQLite Sync
i suggest you to build your custom sync mechanism because there is no such tools or plugin which provide SQLite autosync for free
How to access .jar file in .ts file
Hi friends,
actually i have purchase the Bill machine in which inbuilt printer is there, so i have developed a food app, when user purchase an item i want to give receipt as print, but the billing machine person give me a .jar to access that printer
Please help me how should i include that .jar file and how should i access that jar file in my .ts file, please help me out i am struck in the middle of the project.
thank you in advance.
Angular to VueJS converting example code
With the Ionic Native there is the possibility to use iBeacons via a native-plugin: https://ionicframework.com/docs/native/ibeacon
The example code is written for people that use Ionic with AngularJS, but I’m using VueJS and I cannot figure out how to get this to work:
The Angular version of the Example code:
import { IBeacon } from '@ionic-native/ibeacon/ngx';
constructor(private ibeacon: IBeacon) { }
...
// Request permission to use location on iOS
this.ibeacon.requestAlwaysAuthorization();
// create a new delegate and register it with the native layer
let delegate = this.ibeacon.Delegate();
// Subscribe to some of the delegate's event handlers
delegate.didRangeBeaconsInRegion()
.subscribe(
data => console.log('didRangeBeaconsInRegion: ', data),
error => console.error()
);
delegate.didStartMonitoringForRegion()
.subscribe(
data => console.log('didStartMonitoringForRegion: ', data),
error => console.error()
);
delegate.didEnterRegion()
.subscribe(
data => {
console.log('didEnterRegion: ', data);
}
);
let beaconRegion = this.ibeacon.BeaconRegion('deskBeacon','F7826DA6-ASDF-ASDF-8024-BC5B71E0893E');
this.ibeacon.startMonitoringForRegion(beaconRegion)
.then(
() => console.log('Native layer received the request to monitoring'),
error => console.error('Native layer failed to begin monitoring: ', error)
);
But… what I expected to work was the following in VueJS:
On top of my component importing it: import { IBeacon } from '@ionic-native/ibeacon/ngx';
And use it like this:
foobar() {
let _ibeacon = IBeacon.Delegate()
alert('Hi iBeacon');
_ibeacon.didStartMonitoringForRegion()
.subscribe(
data => console.log('didStartMonitoringForRegion: ', data),
error => console.error()
);
}
But even the alert isn’t shown.
What IS the correct way to use the iBeacon plugin with Vue and ionic?
How can i update my ionic 3 app to ionic4?
I can’t find step by step guide to install ionic 4 and I am not sure which version I need to download can someone tell me how to upgrade to ionic 4/angular 8.
Update project from Ionic 4 to 5
Hey guys, how can I update my project from Ionic 4 to 5?
Also, is there ant documentation on the new components? I know that the modal is different, looks more like the iOS13.
Thanks
How to upload image on s3 server using ionic react?
You can try like this
Good Luck
Alternative plugin for Card IO
Hey guys. I need to implement a credit card scan function in my application. I found the Card IO plugin, but it’s not working properly. Its integration requires the definiton of functions on files that my project doesn’t have. Is there an alternative (and easier) plugin to use for scan credit cards? Thanks.
Development and production workflow
How do you guys manage working on application with multiple builds. I have different package names form my dev and prod application. On Cordova I had a script that changed package/bundle name config.xml so I could build both types. Is there any workflow advice for capacitor? Oh and another question, how can I get invite to slack, the link from home page isn’t working.
Ionic serve failing to compile
I switched PCs and wanted to continue my little project to continue to learn Angular and Ionic. Theres not a lot of code and everything worked fine before switching. When running ionic serve it “failed to compile”
Ionic CLI: 5.4.13
NodeJS : v12.14.1
npm: 6.13.6
Capacitor Slack invite page not working?
Guess no one’s watching; it’s still broken.
Ionic 4 tabs : navigation to children and come back
Hi, I have a problem on navigation from tabs and their children : for example, this is my tabs routing :
const routes: Routes = [
{
path: 'tabs',
component: TabsPage,
children: [
{
path: 'new-traitement',
children: [
{
path: '',
loadChildren: () =>
import('../new-traitement/new-traitement.module').then(m => m.NewTraitementPageModule)
},
{
path: 'question',
children: [
{
path: '',
loadChildren: () =>
import('../question-traitement/question-traitement.module').then(m => m.QuestionTraitementPageModule)
}
]
},
{
path: 'question2',
children: [
{
path: '',
loadChildren: () =>
import('../question2-traitement/question2-traitement.module').then(m => m.Question2TraitementPageModule)
}
]
}
]
},
{
path: 'traitements',
children: [
{
path: '',
loadChildren: () =>
import('../traitements/traitements.module').then(m => m.TraitementsPageModule)
},
{
path: 'detail',
children: [
{
path: '',
loadChildren: () =>
import('../detail-traitement/detail-traitement.module').then(m => m.DetailTraitementPageModule)
}
]
}
]
},
{
path: 'soins',
children: [
{
path: '',
loadChildren: () =>
import('../soins/soins.module').then(m => m.SoinsPageModule)
},
{
path: 'detail',
children: [
{
path: '',
loadChildren: () =>
import('../detail-soin/detail-soin.module').then(m => m.DetailSoinPageModule)
}
]
}
]
},
{
path: '',
redirectTo: '/tabs/traitements',
pathMatch: 'full'
}
]
},
{
path: '',
redirectTo: '/tabs/traitements',
pathMatch: 'full'
}
];
when I navigate to ‘new-traitement’ by clicking in the first tab, I go to the page ‘/tabs/new-traitement’. inside this page, I have a button which goes to ‘question’ --> ‘/tabs/new-traitement/question’, until here, all is OK.
If I click to another tab, and i come back in the first tab, I didn’t go to the ‘/tabs/new-traitement’ page but to ‘/tabs/new-traitement/question’ page. It’s a good thing because it keeps in mind my precedent action on the first tab.
Now, I have another button in ‘/tabs/new-traitement/question’ page which redirect me to another page in an other tab (’/tabs/traitements/detail’). But now, what I want is if I click on the first Tab, I don’t want to be redirected to ‘/tabs/new-traitement/question’ page but to ‘/tabs/new-traitement’ page. I don’t want to keep in mind my first action but initialize the first tab.
How I can do this?
I Have found some parameters on angular Router (extras) to use un NavigateByUrl but I have found any parameter which works
https://angular.io/api/router/NavigationExtras
Ionic 4 - Error " MediaPlayer Error (1) Streaming
Hi helpme please, I try to play a radio streaming but NO work when install in phone android
startAudio() {
let options: StreamingAudioOptions = {
successCallback: () => { console.log('Finished Audio') },
errorCallback: (e) => { console.log('Error: ', e) }
};
this.streamingMedia.playAudio('http://audio.crearchile.info:9726/', options);
}
thank you
Ionic 3 network connectivity check how to implement for all pages (components)?
missing previousStatus:any;
Webpack prevents offline mode from working correctly on browsers
You can look into adding the angular service worker to cache all the chunks (if it is a web app)
ng add @angular/pwa
Ionic Grid - Two buttons with different content but with the same size, side by side
I have an element which is a header with two buttons. I have the buttons organized in a ion-grid
, where the two buttons are side by side with the same size. This way the size is perfect for mobiles, but the buttons are too big when using a browser:
<ion-header>
<ion-toolbar>
<ion-grid>
<ion-row>
<ion-col size="6" class="ion-text-center">
<ion-button style="width: 75%;">Menu</ion-button>
</ion-col>
<ion-col size="6" class="ion-text-center">
<ion-button style="width: 75%;">Abcdefghijklmn</ion-button>
</ion-col>
</ion-row>
</ion-grid>
</ion-toolbar>
<style>html, body { margin: 0; }</style>
</ion-header>
I tried to change the min-width
and max-width
, but when it gets perfect for browser screen size it gets too small for mobile and the button became smaller then the text inside.
As suggested here, I tried to apply expand="full"
, class="ion-text-wrap"
and set a max-width
to the button, but it loses its center property defined by class="ion-text-center"
on ion-col
. I then added style="text-align: center"
to maintain the center property in ion-col
tag, but does not make difference`.
How to run Ionic project with capacitor?
I Want to run my Ionic project with capacitor and I try a different way for the run Ionic project with capacitor even I create an Ionic blank project with Ionic CLI But I can’t do that because of android studio says this error:
error: resource style/Base.V28.Theme.AppCompat.Light (aka com.mahdi.myapp2:style/Base.V28.Theme.AppCompat.Light) not found.
This error occurs when I want to build or run my project with android studio, Inside the visual studio code, I don’t get an Error
Ionic version: 5.4.13
Node version: v10.15.3
Npm version: 6.4.1
Thanks for your help
Audio trimmer
is there any audio trimmer plugin available
Ionic Grid - Two buttons with different content but with the same size, side by side
<ion-header>
<ion-toolbar>
<ion-grid>
<ion-row>
<ion-col class="ion-text-center">
<ion-button expand="full" class="ion-text-wrap" >Menu</ion-button>
</ion-col>
<ion-col class="ion-text-center">
<ion-button expand="full" class="ion-text-wrap">Abcdefghijklmn</ion-button>
</ion-col>
</ion-row>
</ion-grid>
</ion-toolbar>
<style>html, body { margin: 0; }</style>
</ion-header>
Ionic 4 tabs : navigation to children and come back
While you wait for arguably more constructive answers, I would urge you to reread your own post.
Users expect tabs to work this way, and users really expect UI constructs to behave consistently. Generally with posts on this topic, people don’t even bother to nod at the notion that what they are asking tabs to do is out of their character. You do apparently respect that there’s value here, but then are considering working to undermine it.
So before you go further down this road, I would suggest thinking whether (a) it’s really worth creating an inconsistent UI, and (b) how committed you are to using tabs at all. Because if you abandon tabs, then you’re also freeing yourself from the baggage of how users expect them to behave.