Search found 54 matches

Go to advanced search

by Alan Smith
Fri Feb 01, 2019 10:41 am
Forum: Issues
Topic: Redirect inside function requires 2 button clicks, why?
Replies: 3
Views: 717
 
Jump to post

Redirect inside function requires 2 button clicks, why?

Yes. The callback function is called.

The variables etc are all populated within the if(status=="ok") block, its just ignoring the redirect?!?!

Its very odd!

by Alan Smith
Thu Jan 31, 2019 4:36 pm
Forum: Issues
Topic: Redirect inside function requires 2 button clicks, why?
Replies: 3
Views: 717
 
Jump to post

Redirect inside function requires 2 button clicks, why?

Hi I am having an issue with redirecting to a different page from within a function, that is called on a button press. The function runs as it should no problem, but the redirect does not work on first click, you have to click the button a second time for the redirect? The redirect is: Apperyio.navi...
by Alan Smith
Thu Jul 26, 2018 12:43 pm
Forum: Issues
Topic: Problem displaying a dynamic select list on Ionic app
Replies: 3
Views: 624
 
Jump to post

Problem displaying a dynamic select list on Ionic app

Thanks for replying.

I have changed to above. but now I get nothing, the select is empty, no options!

by Alan Smith
Thu Jul 26, 2018 9:50 am
Forum: Issues
Topic: Problem displaying a dynamic select list on Ionic app
Replies: 3
Views: 624
 
Jump to post

Problem displaying a dynamic select list on Ionic app

I am trying to display a dynamic list of user vehicles on a select dropdown component on an ionic app. BUT I cant seem to get all vehicles in the list, its appears to be overwriting them, leaving the last one only. My list of vehicles from an external database via an api are held in: $scope.vehicles...
by Alan Smith
Thu Jul 12, 2018 9:26 am
Forum: Issues
Topic: How to send a picture from Ionic camera_getPicture plugin to an external API service
Replies: 9
Views: 1270
 
Jump to post

How to send a picture from Ionic camera_getPicture plugin to an external API service

Ok thanks. I can now receive the base64 on the server. But now because I have changed the service request content type to JSON, my authorisation header is missing?

Any idea why this is now being removed?

by Alan Smith
Wed Jul 11, 2018 9:17 am
Forum: Issues
Topic: How to send a picture from Ionic camera_getPicture plugin to an external API service
Replies: 9
Views: 1270
 
Jump to post

How to send a picture from Ionic camera_getPicture plugin to an external API service

Ok thanks for that. Just one more thing, how do I assign the variable to the body of the server code? Like this? "body": { "image": request.get('image'), } Because it is empty. If i replace request.get('image') with any text for example '1234', it is received on my server. But re...
by Alan Smith
Mon Jul 09, 2018 8:15 pm
Forum: Issues
Topic: How to send a picture from Ionic camera_getPicture plugin to an external API service
Replies: 9
Views: 1270
 
Jump to post

How to send a picture from Ionic camera_getPicture plugin to an external API service

And how would you map them to the request?

1.So from the page, like this?

requestData.body.image = thedata;

  1. How do i send this in the service. Like this?

    "body": {
    "image": request.get('image'),
    }

by Alan Smith
Mon Jul 09, 2018 8:08 pm
Forum: Issues
Topic: How to send a picture from Ionic camera_getPicture plugin to an external API service
Replies: 9
Views: 1270
 
Jump to post

How to send a picture from Ionic camera_getPicture plugin to an external API service

OK, but how do i get the variable image, into the body of the request?

On the service request, you can add header variables and parameter variables, but how do you add body request variables?

by Alan Smith
Mon Jul 09, 2018 4:01 pm
Forum: Issues
Topic: How to send a picture from Ionic camera_getPicture plugin to an external API service
Replies: 9
Views: 1270
 
Jump to post

How to send a picture from Ionic camera_getPicture plugin to an external API service

OK, so the var is populated. But i think the issue is that the data is Base64, so its too big to send via get. I tried sending a static variable with preset text, and this was received on the server, but when changed back to the scope var, it was empty. Can I send POST via a service? This is my serv...
by Alan Smith
Mon Jul 09, 2018 2:18 pm
Forum: Issues
Topic: How to send a picture from Ionic camera_getPicture plugin to an external API service
Replies: 9
Views: 1270
 
Jump to post

How to send a picture from Ionic camera_getPicture plugin to an external API service

I'm trying to send an image from an ionic app to an external API via server code, using the camera_getPicture plugin, but the image data is blank. This is the mapping from the plugin to the var: https://d2r1vs3d9006ap.cloudfront.net/s3_images/1739731/d_inline.jpg?1531148375 This is the code I am usi...

Go to advanced search