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

Redirecting to another web page on selecting an option in drop down box

$
0
0

@sravanilovely4 wrote:

Hello!
I want to redirect to another page when i select an option in drop down box in ionic.
I have tried different possibilities but nothing seems to work
Can you help me out with this…
I want it in 2 methods.

  1. passing a parameter while pushing to another page
  2. passing a value to service and getting back from service.
    Im happy if even 1 method works
    Thanks in advance :slightly_smiling_face:

Posts: 1

Participants: 1

Read full topic


Node-forge store rsa.keyPair

$
0
0

@mmaddiona wrote:

Hello,

I am developing a Ionic app which use node-forge and in the specific I need to generate rsa key pair (forge.pki.rsa.KeyPair) and make sign and verify.

I obtained the key pair and I can sign and verify but I have a problem when I have to store in local storage my KeyPair.

I could convert the PrivateKey into json before the store and then parse the json when I retrieve but there is no way to obtain again a forge.pki.rsa.PrivateKey to use the sign function.

I could convert the PrivateKey into PEM but then when I try to get the privateKey back from the PEM I could just obtain a forge.pki.PrivateKey which doesn’t provide the sign function.

What do you suggest to me?

Posts: 1

Participants: 1

Read full topic

net::ERR_SPDY_PROTOCOL_ERROR

$
0
0

@jdearana wrote:

Hello, I have an app that loads content from a server with wordpress, and worked fine, the wordpress have been migrated to another server, and now it doesn’t load images, debugging with the chrome console gives this error for each image

net::ERR_SPDY_PROTOCOL_ERROR

Any idea?

Thanks

Posts: 1

Participants: 1

Read full topic

Need guidance with Ionic 4

$
0
0

@dev-gilbert wrote:

Hello guys, I’m new to this forum and the Ionic community. I need to learn Ionic for professional reasons and I was wondering if I could get some guidance on this forum.

I’ve read the documentation on how to install Ionic, etc. I’m a bit confused with the information found there. For example, I used the Ionic CLI to generate a new app, this command ionic start myApp blank, then the documentation says that to run the app I need to run this ionic serve, however when I check the package.json, the script looks different, so I have to use this command instead "start": "ng serve"

It looks like an Angular app, why is this?

Posts: 1

Participants: 1

Read full topic

Ionic 4 login flow?

$
0
0

@dev-gilbert wrote:

Hello guys, I was wondering if there’s a guide somewhere that I can use to implement login/authentication using Ionic 4, I’ve seen some guides but most are for previous versions of Ionic.

Posts: 1

Participants: 1

Read full topic

(Ionic -V4 )How to add authentication page before the split pane layout?

$
0
0

@Chandankbc wrote:

hello,

I want to build a dashboard kind of web app using ionic 4 and i’m using split pane component in app component.html file but this will make an entirely a spit pane view project but my requirement is i want a login and register page before the split pane layout appears. so please help me with this if any knows.

Posts: 1

Participants: 1

Read full topic

Ioinic-nativ file plugin ReferenceError: documentsDirectory is not defined↵

$
0
0

@konipaka wrote:

Hello
Emulating my app for android and trying to store a pdf file with the cordova-file-plugin I get the error message:

core.js:1449 ERROR TypeError: Object(…) is not a function
at File.get [as dataDirectory] (index.js:649)
at MergeMapSubscriber.project (euro-bus-test.ts:83)
The code:

  import {File} from '@ionic-native/file/ngx'; 
  
  constructor(  public navCtrl: NavController,
                public navParams: NavParams, 
                public http: HttpClient,  
                private storage :Storage,
                private file: File) {
  }

private downloadFile(url:string, fileName : string): Observable<any> {
    return this.http.get(url, {responseType: 'blob'})
      .flatMap((data: Blob) => {
        return Observable.from(this.file.writeFile(this.file.dataDirectory, fileName, data, {replace: true}))
      })
  }

The error happens in this line of code:
this.file.writeFile(this.file.dataDirectory, fileName, data, {replace: true})
When I check the dataDirectory in the debugger it says:
ioinic-nativ file plugin ReferenceError: documentsDirectory is not defined
When I check this.file.dataDirectory it says: TypeError: Object(…) is not a function

The other point is, that the import only ‘works’, if I import from ‘file/ngx’ like in shown in the code. Without /ngx the imported ‘File’ is not used in the constructor, and the method writeFile() doesn’t exists (of course).This wasn’t nessecary yesterday.

Posts: 1

Participants: 1

Read full topic

Como se puede crear proyecto en ionic v3

$
0
0

@josele2015 wrote:

como se puede crear proyecto en ionic v3 porque actualmente cada vez que creo un proyecto con el comando ionic start myapp blank se crea proyecto en version v4, pero por el momento no deseo manejar proyectos en ionic v4, hasta entender como funciona.

Posts: 1

Participants: 1

Read full topic


How can I give drop shadow to ion-icon Ionic-v4

$
0
0

@kepuza wrote:

How can I give drop shadow to ion-icon Ionic-v4 not showing on white background

Thank you

Posts: 1

Participants: 1

Read full topic

Ion-select v4 after correct model binding option not shown on form

$
0
0

@pnaa78 wrote:

After I bind the values of 2 Cascade Dropdown the first one is OK, and the second has the correct value chosen but it only updates the form when I click the dropdown to select another item, which brings the correct value along

Posts: 1

Participants: 1

Read full topic

Shopping Cart

$
0
0

@queen81 wrote:

I need to develop a simple shopping cart in ionic, just add and remove products, add up your costs, some suggestions?, thank you!

Posts: 1

Participants: 1

Read full topic

Ionic refresher

$
0
0

@RenzoM78 wrote:

Good evening,

I have a question about refreshing data which is loaded from an external json file. My script is this for now and at the doRefresh part I have to change something but dont know how

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { HttpClient } from '@angular/common/http';
import "rxjs/add/operator/map";
 
@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {
  users=[];
  page = 0;
  maximumPages = 10;
	
	text:any = {
    Year: 'Year',
    Month: 'Month',
    Weeks: "Weeks",
    Days: "Days",
    Hours: "Hours",
    Minutes: "Minutes",
    Seconds: "Seconds",
    MilliSeconds: "MilliSeconds"
  };
 
  constructor(public navCtrl: NavController, private httpClient: HttpClient) {
    this.loadUsers();
  }
 
  
	loadUsers(infiniteScroll?) {
 
    this.httpClient.get(`http://bla.nl/res/nieuws?page=${this.page}`)
    .subscribe(res => {
      this.users = this.users.concat(res['results']);
      if (infiniteScroll) {
        infiniteScroll.complete();
      }
    })
 
        
     

  }
 
  loadMore(infiniteScroll) {
    this.page++;
    this.loadUsers(infiniteScroll);
 
    if (this.page === this.maximumPages) {
      infiniteScroll.enable(false);
    }
  }
	
	doRefresh(refresher) {
    console.log('Begin async operation', refresher);
		
		.subscribe(res => {
      this.users = this.users.concat(res['results']);
		});
}
 
}

For now I get Declaration or statement expected. How can I add something before .subscribe which can work?

Posts: 1

Participants: 1

Read full topic

Ionic post-request to nodejs

$
0
0

@Gazoh wrote:

I am doing a post request to my nodeJS server like this.

So whenever i click on the button it gives a post with a JSON: if i console.log the JSON it gives me the good parameters so that’s not the problem.

 let data = {
        username: this.username,
        email: this.email,
        password1: this.password1,
        password2: this.password2
    };

    this.http.post("http://localhost:3000/", data, {}).subscribe(data => {
          this.dataUser = data;
        }, error => {
            console.log(error);
        });

and from my server.js i do this to get the post but i get a

POST http://localhost:3000/ 404 (Not Found)

so i have no clue how to fix this. On my server side so the server.js file i do this:

 app.get("/", (req, res) => {
            console.log({" / ": true});
            request('http://localhost:8100/create-account', function (error, response, body) {
                res.json(response);
                if(error) {
                    throw error;
                }
            });
        });

Posts: 1

Participants: 1

Read full topic

Service storing Global Varible doesnt work on Device

$
0
0

@Lona wrote:

Hi everyone, I’ve got the following service, which when running on ionic serve, it only calls the rest service once. When running on the device however, it calls it each time.

Why would it be different in the browser and the device? Anything I can do to fix this?

export class RestApiService {

    wordList: Observable<any>;

    constructor(private http: HttpClient) {
    }

    getDataOnce(): Observable<any> {
        try {
            console.log('getDataOnce() ');
            if (!this.wordList) {
                console.debug('REST API: ' + apiUrl);
                const response1 = this.http.get(apiUrl);
                this.wordList = forkJoin([response1]);
            }
            return this.wordList;
        } catch (e) {
            console.log(e);
        }
    }


}

ps I know i don’t need the forjoin.

Posts: 1

Participants: 1

Read full topic

Sending push notification to the desktop browser from Ionic 3 application

$
0
0

@dismipaul wrote:

Hi All,

I need to send a message from my ionic 3 application to a particular desktop browser. Can anyone suggest some ideas to accomplish this?

Posts: 1

Participants: 1

Read full topic


Ionic4 ion-select with objects

$
0
0

@Slavrix wrote:

In v3 we had the compareWith on ion-selects that allowed us to put our own comparison method in place to handle objects etc.

Whats the best way to do this now in v4 that compareWith is missing?

Posts: 1

Participants: 1

Read full topic

Platform browser distribution

$
0
0

@aflecler wrote:

Hello there,

i have the following question:
Besides the distributions for Android and IOS the client wants to use the app in a browser.
So is it possible to send him the “platform -> browser” package, and he is able to start (via shortcut e.g.) the app locally in his browser, without running the serve command?
Info: There will be no native plugins used.

Thanks in advance!

Posts: 1

Participants: 1

Read full topic

Ionic 4 Paytm integration

$
0
0

@niranjan401 wrote:

Hello,
i am trying to integrate the paytm payment gateway for ionic 4 Application, If you have any links or documents please provide me

Posts: 1

Participants: 1

Read full topic

Stripe connect with ionic 3

Garmin Express not working

$
0
0

@amyp wrote:

Garmin Express is a tool which is mange all the Garmin device, if this device is not working properly then you may be face issues with your GPS. there are many reason behind the Garmin Express is not working properly. Garmin Express software avail new updates frequently. So, if you are a Garmin Express App user, ensure its latest version installed on your system. Garmin always notify the update,so check the updates’ dashboard of your software application. Visit on our website for more details https://gps-map-updates.com/garmin-express/

Posts: 1

Participants: 1

Read full topic

Viewing all 70440 articles
Browse latest View live


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