Quantcast
Channel: Ionic Forum - Latest topics
Viewing all 71027 articles
Browse latest View live

Get city from Google Maps using AGM/Core

$
0
0

@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


Ionic 4: How to change ion-select set icon color

Cordova QR scanner not installed error

$
0
0

@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

How to modify swiper-pagination to show pager on the top

$
0
0

@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

After opening url to google maps or waze, and navigating back, the app blanks out on iOS/other map links don't function on Android

App Flow certificate rejected

$
0
0

@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

Sample App Using latest version of ngrx

Apple app signing

$
0
0

@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


How to update my app to Paid version and not create a new app

$
0
0

@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

Call AlertController function

$
0
0

@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

[IONIC 3] Headers on cordova PhotoViewer

$
0
0

@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; }

  1. Isn’t headers expected to be declared within PowerViewerOptions?
  2. 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

Disable the ion-tabs default ripple animation

$
0
0

@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

Ionic 4 capacitor android font size

$
0
0

@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

How to create an dial slider selector?

[Ionic4] Child component not updating after sending value with alert-prompt

$
0
0

@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


How to combine react-redux connect() and withIonLifeCycle() in @Ionic/react?

$
0
0

@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

How to dismiss IonLoading after saga fetch finish?

$
0
0

@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

How to check the directory in ionic 4

$
0
0

@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

How to solve duplicate data in ion-infinite-scroll

$
0
0

@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

How to send a text message to a whatsapp group using social sharing plugin

$
0
0

@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

Viewing all 71027 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>