ionic-framework

Error: spawn EACCES when trying to build Ionic app in Ubuntu 15.10

拈花ヽ惹草 提交于 2020-01-13 10:33:22
问题 I was was working with an cordova/ionic project for past couple of weeks. I used windows for development. But recently I had to change my developing environment to Ubuntu. I use Ubuntu 15.10. Tried to build the same project in Ubuntu after setting up Android SDK , JDK ANT ect., gave me this error. I can "ionic serve" or "cordova serve" without any problem. Tried removing and re adding the platform android but the issue was same. Below is the error. user@myhost:~/works/myproject$ ionic build

How add android ssl certificate for https request in ionic?

痴心易碎 提交于 2020-01-13 10:13:22
问题 In ionic simulator all http and https working fine but in real device release version its stop working. Many people adviced to add SSL certificate for release version but I dont know how to add this ? I have tries all this to make https request ? <access origin="*"/> <access origin="*"/> <allow-navigation href="*"/> <allow-intent href="*" /> Also added whitelist plugin but not working. Also tried this but not working <meta http-equiv="Content-Security-Policy" content="default-src *; style-src

How to use Ionic 4 CSS and JS without CDN in a static website?

不问归期 提交于 2020-01-13 03:41:31
问题 How to include Ionic 4's CSS and JS in a static website without using CDN url’s? When we tried to download the JS file to local and refer it as <script type='text/javascript' src="ionic.js"></script> , the page loads “Empty” with an error in Chrome dev console. The same works if we refer it from CDN. Downloaded the js file from https://unpkg.com/@ionic/core@4.0.0/dist/ionic.js <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!-- <script src="https://unpkg.com/@ionic/core@4.0.0

cordova-ionic ngCordova ios or iPhone file read error code 5 ENCODING_ERR

放肆的年华 提交于 2020-01-13 03:12:18
问题 i am using cordova-ionic framework to build app. i am new to the iOS or iPhone in my requirement, i have to read a file in the app. i am reading file in the android app but same code showing error (code: 5). i am following code types: in android: $cordovaFile.writeFile(( 'user.json', data, {'append':false} )).then(function(result) { alert('file created.'); alert(JSON.stringify(result)); }, function(err) { // An error occured. Show a message to the user alert('file writed'); alert(JSON

cannot uninstall Cordova plugin

不羁的心 提交于 2020-01-13 02:28:22
问题 In my Ionic app, I just uninstalled a Cordova plugin this way : $ cordova plugin remove phonegap-facebook-plugin Uninstalling phonegap-facebook-plugin from android but when I list the plugins it still appears as installed : $ cordova plugins cordova-plugin-googleplayservices 19.0.3 "Google Play Services for Android" cordova-plugin-googleplus 4.0.3 "Google+" cordova-plugin-whitelist 1.1.1-dev "Whitelist" ionic-plugin-keyboard 1.0.7 "Keyboard" phonegap-facebook-plugin 0.12.0 "Facebook Connect"

Error Implementing Google Analytics into Ionic 2

≡放荡痞女 提交于 2020-01-12 10:12:52
问题 Trying to integrate Google Analytics ( http://ionicframework.com/docs/v2/native/google-analytics/ ) into my app, followed this tutorial as the docs didn't really have any sort of implementation instructions: https://www.thepolyglotdeveloper.com/2016/03/use-google-analytics-in-an-ionic-2-android-and-ios-app/ However, when I run my app in Simulator I get the following error while compiling: TypeScript error: app/app.ts(21,14): Error TS2339: Property 'analytics' does not exist on type 'Window'.

IONIC 2 Google Maps Marker Click Event

左心房为你撑大大i 提交于 2020-01-12 09:57:21
问题 I'm trying to get all the markers from the database with this code. But the problem is when I click the marker I always get the last item from the database. When the "alert(record.id);" pops up it always show the last item for every marker. I want to show the id of each marker when I click them. loadMarker(){ this.service.getMaps() .subscribe( data1 => { let loc = data1; for (var i = 0; i < data1.length; i++) { var record = data1[i]; let latlng = new GoogleMapsLatLng(record.lat, record.lng);

IONIC 2 Google Maps Marker Click Event

橙三吉。 提交于 2020-01-12 09:57:20
问题 I'm trying to get all the markers from the database with this code. But the problem is when I click the marker I always get the last item from the database. When the "alert(record.id);" pops up it always show the last item for every marker. I want to show the id of each marker when I click them. loadMarker(){ this.service.getMaps() .subscribe( data1 => { let loc = data1; for (var i = 0; i < data1.length; i++) { var record = data1[i]; let latlng = new GoogleMapsLatLng(record.lat, record.lng);

IONIC 2 Google Maps Marker Click Event

萝らか妹 提交于 2020-01-12 09:56:26
问题 I'm trying to get all the markers from the database with this code. But the problem is when I click the marker I always get the last item from the database. When the "alert(record.id);" pops up it always show the last item for every marker. I want to show the id of each marker when I click them. loadMarker(){ this.service.getMaps() .subscribe( data1 => { let loc = data1; for (var i = 0; i < data1.length; i++) { var record = data1[i]; let latlng = new GoogleMapsLatLng(record.lat, record.lng);

Argument of type 'MonoTypeOperatorFunction<any>' is not assignable to parameter of type 'UnaryFunction<Observable<any>, Observable<any>>'

℡╲_俬逩灬. 提交于 2020-01-12 07:50:50
问题 i am trying to migrate from rxjs 5 to 6 but i am having difficulties. when i try this this._connectivity.isOnline().pipe(first()).subscribe((state) => { this.syncCheck(user.uid); }); i am getting this error Argument of type 'MonoTypeOperatorFunction<any>' is not assignable to parameter of type 'UnaryFunction<Observable<any>, Observable<any>>'. Types of parameters 'source' and 'source' are incompatible. Type 'import("/home/User/Desktop/projectname/node_modules/rxjs/Observable").Observable<any>