ionic-framework

Ionic - Setting an image source as FILE_URI produces: Not allowed to load local resource error

孤街醉人 提交于 2019-12-25 04:07:29
问题 I'm using Android at the moment and developing my app with Ionic. When a user takes a photo, I'm having it append to an ion-slide in a ion-slides element. However, I keep getting "Not allowed to load local resource error." All the permissions are set (The image gets saved) HTML: <ion-slide *ngFor="let looImage of looImages"> <img src="{{ looImage }}" imageViewer ion-long-press (onPressing)="showImageOptions()"/> </ion-slide> TS: options: CameraOptions = { correctOrientation: true, quality: 50

Keyboard is pushing tabs in ionic android

送分小仙女□ 提交于 2019-12-25 03:48:26
问题 I’m developing an app on IONIC 3 and i’m having a problem. When I click on the ion search and the Keyboard opens in ANDROID it simply pushes the entire contents of the App by breaking the layout and squeezing the content. and i`m use config.xml <preference name="Fullscreen" value="true" /> app.component.ts this.statusBar.hide(); this.statusBar.overlaysWebView(false) Its WORK ! But, when i go to full screen mode it hides my bottom. Please help me. 回答1: You can handle the UIScrollView from

How to get iScroll to work in an Ionic/Angular application

谁说胖子不能爱 提交于 2019-12-25 03:44:12
问题 Following on from a previous post, I have got iScroll to at least load into my Ionic application. I am doing this as I want flick scrolling on the app when running in a Windows Desktop environment, where you just get the Windows standard scroll as opposed o the native flick (momentum) scrolling as on a Mobile device Just for testing, I have just done this the old fashion way of linking the script, and then finding the IScroll hanging off the window object (as I could not get it working

Build errors in Xcode

隐身守侯 提交于 2019-12-25 03:32:06
问题 My app works fine in Chrome/Safari web browsers but when I try to run it from Xcode I get an error. I only started getting this error once I added the cordova plugin Network Information via cordova plugin add https://github.com/apache/cordova-plugin-network-information Also, I'm on cordova 4.3.0 and Xcode 6.3.1. Is there any way to get past this currently? Xcode error Ld /Users/Default/Library/Developer/Xcode/DerivedData/blankApp-hkvrfpembsxtsxdafnzhlomraujc/Build/Products/Debug-iphoneos

What can be shown in content displayed in a ion-nav-view displayed from a side-menu?

北慕城南 提交于 2019-12-25 03:28:14
问题 So, I am still somewhat at the copy-paste-pray stage of learning some of what is going on in these frameworks. But I cannot see what I can or cannot do in the view being navigated to by my side-menu. Here is the entire page. Any suggestions? I am using Firefox, opening the window to be approximately iPhone shaped and loading the index.html. I do not want to use old-fashioned table tags. On the other hand, I am not seeing what will work. I want reasonable CSS-style HTML. But the view cannot

Ionic/Cordova app plays sound in emulator but not on Android device

自作多情 提交于 2019-12-25 03:16:41
问题 I'm new to Ionic and Cordova, so I'm sure I'm missing something basic, but my problem is a packaged APK does not play sounds on an Android device. I can get the sound to play in the Ripple emulator just fine with the following code: .controller('MainCtrl', ['$scope', function ($scope) { $scope.playStartBell = function () { var media = new Media('media/startBell.mp3', function () { console.log('good'); }, function (err) { console.log('bad: ', err); }); media.play(); }, $scope.playStopBell =

How to adding navigation bar button having ionic-on/ ionic-off functionality

淺唱寂寞╮ 提交于 2019-12-25 02:57:41
问题 I want to add star button on navigation bar and when user press on this, the button show selected icon and next time is press it show unselected. I tried it by using ionic-on and ionic-off but I can't make it. 回答1: The icon-on and icon-off attributes only apply to tabs I think. You can use ng-class like you see here. Based on the value of your $scope.starred property, it will show a star or the outline of a star. <span class="icon" ng-class="{'ion-ios-star': starred, 'ion-ios-star-outline':

Why does Ionic/Cordova build for Windows UWP add Content URI to appxmanifest?

回眸只為那壹抹淺笑 提交于 2019-12-25 01:56:08
问题 I have an Ionic(3) Cordova application, where I want to include a Windows UWP version. On iOS and Android I have no problems, but UWP I just cannot get my ajax to work and be store compliant. My issue is with my ajax calls being blocked on corporate networks as outlined here So, the issue was I needed to add privateNetworkClientServer , which when testing locally, fixed the blocking issue. Also, as explained in the link, I have attempted to add the "local mode". The store now rejects it with

$http requests failing on Ionic after 'ionic build android'

混江龙づ霸主 提交于 2019-12-25 01:55:07
问题 I have been testing my app using ionic serve while developing and everything is working fine. I am now trying to export the apk using ionic build android, then storing the file 'android-debug.apk' on my web server and downloading it via a phone's browser and installing it to test it in the real world. The app installs OK, but won't let me make any $http requests. I have installed the plugin cordova-plugin-whitelist, and also added the following to my config.xml file: <plugin name="cordova

Ionic 3 file select and upload giving error

大兔子大兔子 提交于 2019-12-25 01:49:07
问题 when selecting image from gallary to upload, it gives error. Below is my php code and home.ts code Error is at php side or ionic ? php code <?php header('Access-Control-Allow-Origin: *'); $target_path = "uploads/"; $target_path = $target_path . basename( $_FILES['file']['name']); if (move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) { echo "Upload and move success"; } else { echo $target_path; echo "There was an error uploading the file, please try again!"; } ?> Home.ts code