ionic2

iOS App doesn't update on ionic 2

旧城冷巷雨未停 提交于 2021-02-11 14:21:38
问题 I started to develop ionic 2 cordova app on mac and doesn't update ios Application. My pc specs are, node v8.9.1 npm v5.5.1 cordova v7.1.0 ionic v3.17.0 editor VSCode if I want some code change in ionic-v1 then I can edit platform -> ios -> www ->.js files or platform -> ios -> www ->.html files and reload xcode then changes appear on real device. But in ionic 2 app platform -> ios -> www folder contain minified files and cannot edit these files. so I follow this process but code doesn't

iOS App doesn't update on ionic 2

佐手、 提交于 2021-02-11 14:20:16
问题 I started to develop ionic 2 cordova app on mac and doesn't update ios Application. My pc specs are, node v8.9.1 npm v5.5.1 cordova v7.1.0 ionic v3.17.0 editor VSCode if I want some code change in ionic-v1 then I can edit platform -> ios -> www ->.js files or platform -> ios -> www ->.html files and reload xcode then changes appear on real device. But in ionic 2 app platform -> ios -> www folder contain minified files and cannot edit these files. so I follow this process but code doesn't

Failed to lookup view “error” in views directory

青春壹個敷衍的年華 提交于 2021-02-11 13:23:59
问题 Failed to lookup view "error" in views directory Here is my code: app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'ejs'); console.log("set views") // uncomment after placing your favicon in /public //app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); app.use(logger('dev')); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false })); app.use(cookieParser()); app.use(express.static(path.join(__dirname, 'public'))); 回答1: You can solve it

Cordova Image Picker Returning Temp URL From Cache Folder Where Images Are Not Present In It

北城余情 提交于 2021-02-10 18:21:47
问题 Not able to get the right image url when I select the images from the android device, I am able to get the temp image url from the cache where there is no original imaged copied to it. The Url which I got from the plugin looks like this. "file:///data/user/0/com.myapp.dev/cache/tmp_20180118_125700267959888.jpg" Is there any way to get the original image path or the temp url itself where the duplicate image is present in it? Plugin URL : https://github.com/wymsee/cordova-imagePicker.git Plugin

Cordova Image Picker Returning Temp URL From Cache Folder Where Images Are Not Present In It

女生的网名这么多〃 提交于 2021-02-10 18:20:45
问题 Not able to get the right image url when I select the images from the android device, I am able to get the temp image url from the cache where there is no original imaged copied to it. The Url which I got from the plugin looks like this. "file:///data/user/0/com.myapp.dev/cache/tmp_20180118_125700267959888.jpg" Is there any way to get the original image path or the temp url itself where the duplicate image is present in it? Plugin URL : https://github.com/wymsee/cordova-imagePicker.git Plugin

Getting error Property 'openDatabase' does not exist on type 'SQLite' in ionic3 project?

↘锁芯ラ 提交于 2021-02-10 17:30:00
问题 My Error: Runtime Error Uncaught (in promise): TypeError: _this.sqlstorage.openDatabase is not a function TypeError: _this.sqlstorage.openDatabase is not a function at http://localhost:8100/build/main.js:67:30 at t.invoke (http://localhost:8100/build/polyfills.js:3:9283) at Object.onInvoke (http://localhost:8100/build/vendor.js:4508:37) at t.invoke (http://localhost:8100/build/polyfills.js:3:9223) at r.run (http://localhost:8100/build/polyfills.js:3:4452) at http://localhost:8100/build

Getting error Property 'openDatabase' does not exist on type 'SQLite' in ionic3 project?

Deadly 提交于 2021-02-10 17:28:36
问题 My Error: Runtime Error Uncaught (in promise): TypeError: _this.sqlstorage.openDatabase is not a function TypeError: _this.sqlstorage.openDatabase is not a function at http://localhost:8100/build/main.js:67:30 at t.invoke (http://localhost:8100/build/polyfills.js:3:9283) at Object.onInvoke (http://localhost:8100/build/vendor.js:4508:37) at t.invoke (http://localhost:8100/build/polyfills.js:3:9223) at r.run (http://localhost:8100/build/polyfills.js:3:4452) at http://localhost:8100/build

Getting error Property 'openDatabase' does not exist on type 'SQLite' in ionic3 project?

≯℡__Kan透↙ 提交于 2021-02-10 17:28:06
问题 My Error: Runtime Error Uncaught (in promise): TypeError: _this.sqlstorage.openDatabase is not a function TypeError: _this.sqlstorage.openDatabase is not a function at http://localhost:8100/build/main.js:67:30 at t.invoke (http://localhost:8100/build/polyfills.js:3:9283) at Object.onInvoke (http://localhost:8100/build/vendor.js:4508:37) at t.invoke (http://localhost:8100/build/polyfills.js:3:9223) at r.run (http://localhost:8100/build/polyfills.js:3:4452) at http://localhost:8100/build

Why, using @HostListener, keypress event fires a number of time equal of the times the page is visited (ionic2/typescript)?

点点圈 提交于 2021-02-10 14:13:36
问题 I have a page in ionic 2 and I want to catch key pressed when the user is in the page. This is the code I used to do this (.ts) @Component({ selector: 'page-play', templateUrl: 'play.html' }) export class PlayPage { @HostListener('document:keypress', ['$event']) handleKeyboardEvents(event: KeyboardEvent) { console.log("keypressed!"); } constructor() { // doing a lot of things } } Unfortunately, the handleKeyboardEvents gets fired once the first time I enter in the page, twice if, after that,

Convert Input File to Base64 in Angular 2 without using FileReader In Ionic V2

﹥>﹥吖頭↗ 提交于 2021-02-08 08:32:39
问题 I am having an issue converting the input file object into Base64 in my ionic v2 app . The issue occurs specifically when using the onload/onloadend reader as it gets called only occasionally (rarest of rarest to be very specific). I am able to get the file name, size and object when the user clicks on a image file which triggers the attachFile function, but after that when i convert the file object to Base64 using FileReader - onload or onloadend the callback function rarely gets called and