ionic3

Ionic application targets API level 25 and must target at least API level 26

浪尽此生 提交于 2021-02-10 17:35:39
问题 I am creating an android application using ionic 3, when i attempt to upload to playstore i get an error that my app targets api 25, when i check my project.property the value of target =android-26, same with my androidManifest.xml the value of targetSdkVersion = 26, how do i set the target again. Below is my ionic info Ionic: ionic (Ionic CLI) : 4.4.0 (C:\Users\IETECH\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.8 Cordova: cordova

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

Angular - wait for this variable to have value and then execute

霸气de小男生 提交于 2021-02-10 14:13:45
问题 In ngOnInit() , first line of code fetches the value from local storage and then that value is used to filter data from database. Both executes together and I don't get the result. How can I do something like the second function waits for the first one to get value. Below is my ts code: ngOnInit() { //get id of user this.storage.get('loggedInUser').then((val) => { console.log('Your user ID is', val); this.loggedInusr = val; }); firebase.firestore().collection(`todos`) .where("assignTo", "==",

Ionic 3 long white screen after splash

与世无争的帅哥 提交于 2021-02-08 09:42:28
问题 Is there a way to get it as soon as i start my application and after that i get the login screen, and get ride of the SplashScreen. Or a way to modify something so my animation become my SplashScreen ? Thank you. 回答1: Put a longer timeout in your config.xml and disable it yourself when your home screen is loaded. config.xml <preference name="SplashScreenDelay" value="30000" /> app.component.ts platform.ready().then(() => { splashScreen.hide(); }); 回答2: Ionic hides the splash screen as default

Ionic network security config

前提是你 提交于 2021-02-08 09:14:43
问题 Hello i am working on ionic application. with executing this command ionic cordova build android --prod --release . it does generate the unasigned apk file,but it also show error in network_security_config file. Error app\src\main\res\xml\network_security_config.xml:4: Error: Missing includeSubdomains attribute [NetworkSecurityConfig] <domain>localhost</domain> i tried multiple solutions, but doesn't work for me. Reference How to allow all Network connection types HTTP and HTTPS in Android (9

Ionic network security config

寵の児 提交于 2021-02-08 09:11:05
问题 Hello i am working on ionic application. with executing this command ionic cordova build android --prod --release . it does generate the unasigned apk file,but it also show error in network_security_config file. Error app\src\main\res\xml\network_security_config.xml:4: Error: Missing includeSubdomains attribute [NetworkSecurityConfig] <domain>localhost</domain> i tried multiple solutions, but doesn't work for me. Reference How to allow all Network connection types HTTP and HTTPS in Android (9

TypeError: Cannot read property 'content' of undefined

青春壹個敷衍的年華 提交于 2021-02-08 07:56:39
问题 I have a config file throwing error when only building with AOT ionic cordova build android --prod Error: ./src/config/.env.ts Module build failed: TypeError: Cannot read property 'content' of undefined at Object.optimizationLoader (/Users/yasir/myApp/mobile/node_modules/@ionic/app-scripts/dist/webpack/optimization-loader-impl.js:14:24) at Object.loader (/Users/yasir/myApp/mobile/node_modules/@ionic/app-scripts/dist/webpack/optimization-loader.js:5:32) @ ./src/providers/post-service.js 15:0

How to remove the white space at iPhone X top viewport corners on ionic cordova [duplicate]

大兔子大兔子 提交于 2021-02-07 14:42:43
问题 This question already has an answer here : Ionic - White edge on iPhone X in header (1 answer) Closed 2 years ago . I followed the instructions here Understanding the WebView Viewport in iOS 11 and here Cordova app not displaying correctly on iPhone X (Simulator) to set viewport-fit to cover etc. But I still can't seem to get rid of these white corners on the top: What am I missing? ionic (Ionic CLI) : 3.15.2 cordova (Cordova CLI) : 7.1.0 Cordova Platforms : ios 4.5.2 Ionic Framework : ionic