ionic-framework

Photo-library plugin crash in ios version 13

廉价感情. 提交于 2020-02-06 07:54:48
问题 Reposted: question link app crashes when the user wants to fetch images from the library in ionic 3. image picker plugin works fine in iOS 12. But after updating to iOS 13, it is crashing. it is working in iPhone X but when trying it on iPad it's getting the error which is in the link given above. can anyone help with this? Thanks in advance! 回答1: Just add property in ImagePicker options: disable_popover: true It will solve the crashing issue.But the error still would be there in logs! Happy

Photo-library plugin crash in ios version 13

a 夏天 提交于 2020-02-06 07:54:05
问题 Reposted: question link app crashes when the user wants to fetch images from the library in ionic 3. image picker plugin works fine in iOS 12. But after updating to iOS 13, it is crashing. it is working in iPhone X but when trying it on iPad it's getting the error which is in the link given above. can anyone help with this? Thanks in advance! 回答1: Just add property in ImagePicker options: disable_popover: true It will solve the crashing issue.But the error still would be there in logs! Happy

How to solve Error Code: 0, Message HTTP failure on android - IONIC API

谁说我不能喝 提交于 2020-02-06 07:44:11
问题 When i accessed my app on the browser i have no problem accessing data from API. But when i launch it on emulator on android studio, i can´t. It pops-up a card with a ERROR CODE :0, Message Ht failure with the referent link API. I tried to add the allow-intent, change the "localhost" on API GET request to "127.0.0.1"... and more that i don't remember. Even the DATA received by the server side is not accessible. Right now i'm inclined to think that is a proxy related issue or a CORS problem.

How to get selected date from ionic-2 calendar onchange() method

微笑、不失礼 提交于 2020-02-06 07:30:47
问题 I am using ion2-calendar. this is my html: <ion-calendar [(ngModel)]="date" (onChange)="onChange($event)" [type]="type" [format]="'YYYY-MM-DD'"> </ion-calendar> and this is onchange in ts: onChange($event) { console.log("onchange event called"); console.log(moment().format('DD-MM-YYYY')); } This is my console: onSelect event called 25-06-2018 But i am always getting current month and year,no matter which date I choose. Only the date value is changing. Its showing current month and year in the

Send image from ionic to asp.net core web api

倖福魔咒の 提交于 2020-02-06 06:39:46
问题 We are looking to upload image from ionic to .net core web api. To achieve this we are using file transfer plugin. So, far we understood that image will be converted into base64. However, what we are looking is how can we sent form data along with multiple image to web api? Below is the code from ionic side. HTML code to trigger select image function: <ion-button fill="clear" expand="full" color="light" (click)="selectImage()"> <ion-icon slot="start" name="camera"></ion-icon> Select Image<

Share data between controllers in Ionic Framework/Angular JS

情到浓时终转凉″ 提交于 2020-02-06 04:49:49
问题 What is the best way of sharing data between controllers using services in AngularJS? For example, when the user selects an item from the <ion-list> in services.html , I'd like the title of the selected item to be displayed in service.html . {{service.name}} is some pseudocode I've written down to kinda spell out what I am trying to achieve. services.html <ion-list> <ion-item ng-repeat="service in services" href="#/app/services/{{service.id}}" class="item-icon-right"> {{service.title}} <i

Ionic File Upload using HTML5 input

╄→尐↘猪︶ㄣ 提交于 2020-02-04 22:17:12
问题 I am using ionic to build a mobile app that incorporates a file upload. Versions ionic (Ionic CLI) : 4.10.3 Ionic Framework : ionic-angular 3.9.3 @ionic/app-scripts : 3.2.3 The files supported are images word documents (.doc, .docx) pdf I am trying to use a HTML input tag with the attribute of type="file" <input style="display:none;" type="file" accept="image/*, .pdf, .doc, .docx" (change)="fileSelected($event)" #chosenFile /> <button class="btnAttach" (click)="chosenFile.click()"><ion-icon

Pushing pictures with push notifications (ngCordova, Angular, Ionic)

不问归期 提交于 2020-02-03 21:32:11
问题 Recently, I have come across some apps, that are able to show me a picture (in addition to some text) in the application drawer / lock screen when a push notification arrives. I would like to know if it is possible to implement this with Ionic / Angular / ngCordova stack. 回答1: Even if the PushNotification retrieves the image property, I think the local notification is not able to display an image at the moment. The question has already been asked in the cordova-plugin-local-notifications

keep keyboard open on Ionic when button click ( chat app )

偶尔善良 提交于 2020-02-03 10:55:55
问题 I have an Ionic v1 chat application, I made everything, but I encountred the famous problem when clicking on a send button (send chat) the keyboard loses focus from the input and then closes. I've tried many approaches, but it none of them work: Input directive to keep focus, forcing focus on click event, modifying the value of InputUserAction in config.xml to false. Any help is much appreciated. <div class="sender"> <input type="text" ng-model="..." class="..."> <div class="button-send">

how to view the data from array in list using ionic and angularjs

只谈情不闲聊 提交于 2020-02-02 12:24:25
问题 i have no problem in pushing the data in array here is my code.when i use console.log(products) outside the function i am getting an empty array but when i use the console.log(products) inside the controller i am getting my data. angular.module('ob3App.lead') .controller('LeadProductCtrl',['$scope','$http', function($scope,$http) { $scope.namegetfunction = function() { var products=[]; $http.get("http://5.9.42.45:8080/easycloud1/org.openbravo.service.json.jsonrest/Product?l=saiy5k&p=saiy5k")