ionic-framework

Ion-select doesn't scroll in Ionic 3

南楼画角 提交于 2021-01-28 21:31:46
问题 This select contains the list of all countries in register form. The point is that the ion-content in the form page is scrollable but select it self is not scrolling. Here is the code: <ion-item> <ion-select interface="action-sheet" class="select" placeholder="Country"> <ion-option ngDefaultControl [value]='country.name' *ngFor="let country of countries">{{country.name}} </ion-option> </ion-select> </ion-item> Why select scroll is not working? 回答1: This is a known issue, you can track at

Web API suddenly returns 403 forbidden after a few successfull requests

只谈情不闲聊 提交于 2021-01-28 18:28:58
问题 I've been working on an ionic application in combination with an ASP.NET Web API. I'm using that API for all the data transfer. I have been experiencing a problem: after a few successful requests, the API suddenly returns 403 forbidden. It seems like the API has a limitation or something, because it happens when I do multiple requests in a really short time. The strange thing about this problem is that if I run the Web API locally it works perfectly fine, but if I host it on an external IIS

Ionic 5 menu doesn't show up

耗尽温柔 提交于 2021-01-28 18:01:53
问题 I have a demo application where I want to insert a menu. Unfortunately I can't get this menu to appear in the header. I've tried different approaches, but I can't find the solution. My app.component.html looks like this: <ion-app> <app-header></app-header> <ion-router-outlet id="main-content"></ion-router-outlet> <app-footer></app-footer> </ion-app> My header.component.html like this: <ion-menu side="start" contentId="main-content"> <ion-header> <ion-toolbar color="primary"> <ion-buttons slot

Ionic Android Build Error: cmd: Command failed with exit code 1 [solution]

荒凉一梦 提交于 2021-01-28 17:54:53
问题 I'm new to coding and also Ionic, but here is a solution to an issue that I faced, with an explanation for my situation. I tried to ionic build android but it gave out an error message that ended with Command failed with exit code 1 The fix would be to ionic platform remove android and then add it back again with ionic platform add android . Where it went wrong, I think, is that I updated my android's xml manifest, to update the name for the app. So if you did the same, this will definitely

Data Migration after updating Android Ionic App to an Android Native version

时光总嘲笑我的痴心妄想 提交于 2021-01-28 14:25:10
问题 After I reached the limits of Ionic I boldly decided to detach from the web world and learn Kotlin to rewrite the app in the native language. After an amusing challenge I have my new app up and running. But I forgot about one of the most important details : Data Migration . The Ionic version stores data localy in an SQLite database: I am using this Ionic Native Plugin Cordova-sqlite-storage and I nearly do the same thing as this guy over here the only major diffrence I am on Capacitor. In the

Cannot GET - Error After refresh using Ionic

喜夏-厌秋 提交于 2021-01-28 12:14:05
问题 I'm using Ionic framework to build a hybrid mobile application and I have html5Mode set to true, Ui-Router, and gulp to provide me with livereload, sass compiling, css and javascript minifying. The problem is whenever I navigate to a state directly from the index, everything works fine, requests are being made to my server, but when I refresh that same state, I get Cannot GET error. I am treating my Ionic application as a separate thing from my Express.JS app. Here's some code: States

Strophe disconnecting from Ejabbered with Status 10

。_饼干妹妹 提交于 2021-01-28 08:59:30
问题 In my ionic 4 application, I am using strophe.js to connect to Ejabbered server. In the application after status connected I am able to see chats successfully but after sometime it gets disconnected on its own and chats disappear without doing any thing. In the logs,Strophe is disconnecting with following status: EjabService [Connection] Unknown status received: and status is 10 Also on few devices, not able to see chats due to connection problem. Ejabbered version installed: 20.03 Here is

Ionic native app rate not working for android

女生的网名这么多〃 提交于 2021-01-28 08:58:55
问题 I am Building multiple ionic apps, app rate option in other apps perfectly but in one app its not showing app rate prompt even. My app rate function looks like following rate(){ this.appRate.preferences.storeAppURL = { // ios: '', android: 'market://details?id=app_id', // windows: 'ms-windows-store://review/?ProductId=<store_id>' }; this.appRate.promptForRating(true); // or, override the whole preferences object this.appRate.preferences = { usesUntilPrompt: 3, storeAppURL: { // ios: '<app_id>

Ionic native device plugin @ionic-native/device returns all nulls

北战南征 提交于 2021-01-28 08:51:51
问题 I need to do a device detection in my Ionic project so I've installed @ionic-native/device plugin per instructions here: https://ionicframework.com/docs/native/device/ However when I wire it in inside of a component, then run ionic serve to preview changes, console.log returns Device object with all values set to null , same happens when I try to use individual property e.g. this.device.model : Here is how I use it inside of a component: import {Device} from "@ionic-native/device"; // ...

Connect and Print in th esc/pos mobile printerusing ionic

喜夏-厌秋 提交于 2021-01-28 07:36:38
问题 I am thinking to develop a Android application related to connect a Bluetooth POS printer and print the same in printer ...once connected device in local starage and transaction details are stored in local db and sync to server on daily basis .. I I have limited experience in dotnet as well as angular. Is xamarin or ionic is best suited for my requirement please suggest EDIT: i need sample solution ionic latest version application which print in the esc/pos thermal printer take the printer