September 3, 2019, 5:43 am
@umsuka wrote:
Hi
I would like assistance with getting city name from gps coords, I am using agm/core.
Here is my code that gets gps lat and long and its working on getting coords, I need to get a city name with the coords returned.
onLocate() {
const loader = this.loadingCtrl.create({
content: 'Getting your Location...'
});
loader.present();
this.geolocation
.getCurrentPosition()
.then((location) => {
loader.dismiss();
this.location.lat = location.coords.latitude;
this.location.lng = location.coords.longitude;
})
.catch((error) => {
loader.dismiss();
const toast = this.toastCtrl.create({
message: 'Could not get location, please pick it manually!',
duration: 2500
});
toast.present();
});
}
Posts: 1
Participants: 1
Read full topic
↧
September 3, 2019, 6:31 am
↧
↧
September 3, 2019, 6:52 am
@ionicUser wrote:
I’m using the cordova qr scanner plugin in my ionic application, but the plugin is not working.
I found an issue on the official github page where a user states that the plugin is not supported in the devapp mode. Is that true?
You can assume that I installed the plugin correctly and tried to call it after platform.ready().
However I always get the same error messages as in the still open issue.
Is this plugin still supported and do I have to test it on a physical device?
Because the devapp mode is a pretty convenient way to test your application.
In the worst case I’ll use the barcode scanner plugin.
Github Issue: https://github.com/bitpay/cordova-plugin-qrscanner/issues/186
Posts: 1
Participants: 1
Read full topic
↧
September 3, 2019, 7:07 am
@DKlan wrote:
Hi,
I’m trying to put the pager from a ion-slides on the top of the sreen.
I’m using ionic 4.8.
I did it in the v3 version but can’t succeed with this one.
Thank you
Posts: 1
Participants: 1
Read full topic
↧
September 3, 2019, 7:19 am
@Wian-Lloyd wrote:
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)
Posts: 1
Participants: 1
Read full topic
↧
↧
September 3, 2019, 8:41 am
@ilarion wrote:
Hi, I am trying to add apple certificates to ionic app flow. I add adhoc distribution certificate, valid password, prosivioning profile for this certificate but get an error: There was an error while submitting your credentials. Certificate, Provisioning Profile, or Certificate password invalid.
I use the same certificate for building app on my local machine.
Could anyone please help me locate the problem?
Thank you
Posts: 1
Participants: 1
Read full topic
↧
September 3, 2019, 10:06 am
@aaronksaunders wrote:
This newest version has removed some of the boilerplate so it is more manageable. The current state of this code does not included effect, but they will be added shortly.
aaronksaunders/ionic-v4-angular-ngrxv8 https://buff.ly/32sw18n
Posts: 1
Participants: 1
Read full topic
↧
September 3, 2019, 10:06 am
@amad4biz wrote:
do you have to have developer account with apple to sign your app? or you just need an apple id? any quick answer will be appreciated.
Thank you
Posts: 1
Participants: 1
Read full topic
↧
September 3, 2019, 11:17 am
@WebDevN wrote:
I use Ionic 4 framework and have two apps one for free one for paid, they are almost identical in features, but the free version has ads, the paid one doesn’t. And also I changed widget id from config.xml file. When a user goes from the free version to paid, I don’t want them to have two separate apps on their phones. I want the paid version to be on the same free one and also keep the data if it’s possible (I use local storage). Is that possible and how I can do that ?
Posts: 1
Participants: 1
Read full topic
↧
↧
September 1, 2019, 10:22 pm
@geo3433 wrote:
From documentation
async presentAlert() {
const alert = await this.alertController.create({
header: 'Alert',
subHeader: 'Subtitle',
message: 'This is an alert message.',
buttons: ['OK']
});
await alert.present();
}
this function generates an alert message and it is called after clicking a button. Is there any other way to call the function, just like you call a regular function, for the alert message to be displayed? Like presentAlert();
Posts: 6
Participants: 2
Read full topic
↧
September 3, 2019, 12:04 pm
@carlos-motta wrote:
Hello, guys!
The application I’m currently working needs to access a private URL to see the image. As far as I could read in photo viewer’s documentation, there’s a key called headers
where I should add all headers parameters.
The problem is, it seems it doesn’t work on Ionic 3. While I was debugging, I could find the following code snippet:
export interface PhotoViewerOptions { share?: boolean; }
- Isn’t
headers
expected to be declared within PowerViewerOptions?
- In case
headers
is not recognized as a valid key on the Ionic Plugin, how could I access a private URL link then?
Here is what I’ve done so far:
async viewEvidence(file: any) {
if (file.uri.includes('https:')) {
const options = await this.getImageViewerOptions();
this.photoViewer.show(file.uri, file.fileName, options);
} else {
this.photoViewer.show(file.uri, file.fileName, { share: false });
}
}
private getImageViewerOptions(): Promise<any> {
return this.storageService.get('access_token').then(token => {
const options = {
share: false,
headers: `{Authorization: Bearer ${token}}`
};
return Promise.resolve(options);
});
}
Thanks!
Posts: 1
Participants: 1
Read full topic
↧
September 3, 2019, 12:55 pm
@RazvanEN wrote:
How do you disable the ripple effect animation? I’ve tried putting a CSS class on it but it doesn’t seem to work.
Posts: 1
Participants: 1
Read full topic
↧
September 3, 2019, 1:39 pm
@Zivlevy wrote:
How can I use capacitor to prevent the app from changing font size due to user selection of bigger font size in the accessibility menu ?
Posts: 1
Participants: 1
Read full topic
↧
↧
September 3, 2019, 2:18 pm
@wsandoval wrote:
Hi, i need to create a dial selector just like BBC iRadio Player App, also i need the same behaviour, when i rotate the wheel i need to start the slider transition.
Posts: 1
Participants: 1
Read full topic
↧
September 3, 2019, 5:25 pm
@Hellogark wrote:
Hi, i’m learning Ionic 4 and i’m trying to change my header component title with a prompt, so when i type something in the prompt and click the “Ok” message, y header component should update with the [title] variable value but it doesn’t until i click the prompt button again or another button it changes the component value.
This is my prompt function:
async presentPrompt(){
const prompt = await this._alertController.create({
header:"prompt",
inputs:[
{
name: "prompt1",
type: "text",
placeholder: "Page name"
}
],
buttons:[
{
text:'ok',
cssClass: 'secondary',
handler: (opt) => {
this.alertName = opt.prompt1;
console.log(opc)
console.log(this.alertName);
}},
{
text:'Cancel',
cssClass: 'secondary',
handler: (opc) =>{
}
}
]
})
await prompt.present();
}
And this is my header component implementation
<app-header [title]="alertName || 'My alert'"></app-header>
Posts: 1
Participants: 1
Read full topic
↧
September 3, 2019, 6:56 pm
@it.hieund wrote:
I’m trying to combine react-redux connect() and withIonLifeCycle() in @Ionic/react but no luck. I had to use Ionic React lifecycle hook instead for now.
useIonViewDidEnter,
useIonViewDidLeave,
useIonViewWillEnter,
useIonViewWillLeave,
Anyone can do this? Please give me some sample code.
Many thanks.
Posts: 2
Participants: 1
Read full topic
↧
September 3, 2019, 7:03 pm
@it.hieund wrote:
I’m using IonLoading on my @ionic/react project. First I display the loading to show the progress while calling APIs. The API fetching is handled by a redux-saga function. After saga fetch finish, I want to hide the loading but I can’t find and solution to do that.
Anyone use @ionic/react here? please help me.
@mhartington, I appreciate your help.
Thank you very much!
Posts: 1
Participants: 1
Read full topic
↧
↧
September 3, 2019, 8:22 pm
@ice174 wrote:
I am using ionic 4, I want to check the file have inside my phone storage or not. If the file already inside the phone, I want to direct open the file no need download again my file, else I want to download the file. Can I know how to do it?
Here is my download file coding.
this.http.get('API_URL')
.subscribe((res) => {
const fileName = this.name;
this.file.writeFile(this.file.externalRootDirectory + 'Download/', fileName, res);
});
});
Anyone can help me? Thank you very much
Posts: 1
Participants: 1
Read full topic
↧
September 3, 2019, 10:28 pm
@ice174 wrote:
I am using ionic 4 and I am doing pagination using ion-infinite-scroll. My problem is I always get the duplicate page problem. Can I know how to solve this duplicate problem? Here is my code in home.page.ts :
doInfinite(event) {
this.userService.getData().then(res => {
event.target.complete();
});
}
loadData(event) {
console.log('Load more data');
this.userService.getData().then(res => {
event.target.complete();
});
}
Here is home.html
<ion-infinite-scroll (ionInfinite)="loadData($event)">
<ion-infinite-scroll-content
loadingSpinner="bubbles"
loadingText="loading ...">
</ion-infinite-scroll-content>
</ion-infinite-scroll>
Posts: 1
Participants: 1
Read full topic
↧
September 3, 2019, 11:38 pm
@bilalahmed7827 wrote:
I’m developing an ionic app, which could send a text message to a group in WhatsApp . I’m already able to send a text message to an individual by using below code :
this.socialSharing.shareViaWhatsAppToReceiver(this.contactNo,this.text, null, null).then(() => {
// Success
}).catch((e) => {
// Error!
});
However, I cannot find any support in documentation provided by Ionic to send a text message to a group.
Is there any workaround for sending a text message to a whatsapp group using social sharing plugin? If Yes, Please do share!
OR
If no, Is there any other plugin in ionic 4 which could help me send a text message to a whatsapp group?
Posts: 1
Participants: 1
Read full topic
↧