Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 228500 articles
Browse latest View live

Need help with native plugin mobile accessability

$
0
0

There you have it - install a current Ionic CLI version with npm i -g ionic.


New plugin ionic2-pincode-input

Http get request with header

$
0
0

What does your code request from the server and what does the server respond to it right now?

Ionic 2 add andorid plateform error

Intent to run an old app that has lot's of outdated dependancies, where do I start?

$
0
0

Nothing like it. Thank you for your efforts. I'm going to completely remove it and rebuild.

Ionic-datepicker Bower component for Ionic framework applications

$
0
0

It doesn't have support for seconds as of now.

Ionic Cachebuster error for iPhone

$
0
0

Where is the error?

I only see some JSON that inlcudes a line, column and sourceUrl to the normal Ionic bundle..

Hey i want to upload a image on the click of an camera in ionic2 with the use of .Net web API

$
0
0

when i click image from camera
the click iamge is not geting save on serve
i m geting the image in bytearray
and its showing a internal serve error 500


Attachment in Mailgun

$
0
0

Hello, I'm struggling to add an image as attachment. I looked around on stackoverflow, this forum and the mailgun API documentation but i just can't figure it out. This is what I'm trying right now.

 sendAtt(pictures: any[]){
     var requestHeaders = new Headers();
        requestHeaders.append("Authorization", "Basic " + this.apiKey);
        requestHeaders.append("Content-Type", "application/x-www-form-urlencoded");
        this.http.request(new Request({
                method: RequestMethod.Post,
                url: "https://api.mailgun.net/v3/" + this.mailgunUrl + "/messages",
                body: "from="+this.sender+"&to=" + this.recipient + "&subject=" + this.subject + "&text=" + this.message +"&attachment="+pictures[0] ,
                headers: requestHeaders,
            }))
            .subscribe(success => {
                console.log("SUCCESS -> " + JSON.stringify(success));
            }, error => {
                console.log("ERROR -> " + JSON.stringify(error));
            });
  }

The email is actually getting sent but without the image. The array contains the base64images and it's the same array I use to show them in the application (where it does work).

Http get request with header

$
0
0

let endPoint = 'https://developers.zomato.com/api/v2.1/search?entity_id=5&entity_type=city&sort=cost&order=asc';
let headersObj = new Headers({'user-key':'0c3b1b0774975e0280290d78aae415ec'});

this.http.get(endPoint, {headers:headersObj}).map(res => {
      console.log('res',res);
      if (res.status < 200 || res.status > 300) {
        throw new Error("Error in your code with status" + res.status);
      }
      return res.json()
    }).catch(this.handleError);

I hope this will help you getting your issue solved.

Error in push notification

$
0
0

I could not find a solution for that so far, I just change the config.xml before I build ...

But I would expect the bug getting fixed in the next time .. I would prefer to use 1.10.4. on both platforms of course ..

SearchBar doesn't work correctly with the plugin SuperTabs

$
0
0

Hi !
So I think the view is not refresh. Can you help me for refresh a view on the slide because I have test refresher it doesn't work and I test window.location.reload or location.reload it doesn't work too.

Thank you in advance.

Recommended Android/IOS file chooser plugin

Recommended Android/IOS file chooser plugin

$
0
0

in your .ts file declare

declare var FilePicker: any

and you would be able to use this plugin.
this plugin will allow your app to pick files from your iCloud

Background service in ionic

$
0
0

Try this

startTrackingLocation() {

    console.log('Start geotracking');

    console.log('Is background mode active: ',this.backgroundMode.isActive());
    this.backgroundMode.isActive() === true?this.trackGeoBackground():this.trackGeoForeground();



    this.backgroundMode.on('activate').subscribe(() => {


        this.stopTrackingGeoForeground();
        this.trackGeoBackground();
    });
    this.backgroundMode.on('deactivate').subscribe(() => {
        this.stopTrackingGeoBackground();
        this.trackGeoForeground();
    });

}

Use ngModel with Prompt Alerts

$
0
0

Hi,

I'm trying to use ngModel with Prompt Alerts. Is it possible ?
Where can I insert my [(ngModel)]="password"

in the following code :
Prompt Alerts :

alertEncryptMemo(){
    let alert = this.alertCtrl.create({
      title: 'Encrypt this memo',
      message: 'Write the password then check again',
      inputs: [
        {
          name: 'password',
          placeholder: 'Password',
          type: 'password'
        },
        {
          name: 'password',
          placeholder: 'Password verification',
          type: 'password'
        }
      ],
      buttons: [
        {
          text: 'Set',
          role: 'set',
          handler: data => {
            console.log('Password Set');
          }
        },
        {
          text: 'Cancel',
          role: 'cancel',
          handler: data => {
            console.log('Cancelled');
          }
        },
      ]
    });
    alert.present();
    console.log("Encrypt Current Memo");
  }

Function if needed :

public safeMemo() {

    if (this.memoInfo.pwd != undefined) {
      alert("pwd != undefined");
    }
    else
    {
      alert("pwd = undefined")
      bcrypt.genSalt(10, function(err, salt) {
        bcrypt.hash("B4c0/\/", salt, function(err, hash) {
        // Store hash in the password DB.
        });
      });
    }
  }

This is still in development.

Thanks for your time & help ! :slight_smile:

Is there a workflow for faster development?

$
0
0

I hope this isnt too late. Had the same problem yesterday. Fixed it as follows:-
1. Get a capable mobile device and connect it to same wifi network as your pc. I will be using an iphone 6 for this today.
2. Start your ionic app with ionic lab
3. Load the ip and port on your mobile device browser. Mine is 192.168.2.112:8100
4. Now open up your editor and edit the app. Livereload will keep pushing changes to your mobile device in realtime.

Please note you need a powerful device to reduce the time it takes for your mobile browser to render the app ui. However if this is not possible, any other device works just as well. You will have to be a lil bit patient. I use Google Chrome to preview. Evergreen, heh?

You can also optimize your LAN to allow packets thru it faster. Disable your torrents / downloads to allow the cli deliver your changes faster to the device. I hope this helps you

Underlined text inputs

$
0
0

When I click a text input in my app it is underlined, how do I disable this?

Ionic 3: Fab button click not working on ios

$
0
0

This issue is due to double ng-clicks firing on clicing ion-fab button. It got resolved by deferring second event click on iOS.

Ionic/Angular FormGroup intellisense

$
0
0

Hi All,

Does anyone here know of a way to get any kind of useful typescript intellisense on FormGroup controls?

i.e.

form.controls.whateverPropertyYou'reLookingFor.value

I'm doing okay without but would love to have it if available. My forms are quite deep and complex and would be awesome to have this.

Thank you

Viewing all 228500 articles
Browse latest View live


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