ionic-framework

Ionic - On IOS, Stripe payment button is hidden by the keyboard

橙三吉。 提交于 2019-12-23 23:07:40
问题 My app integrates with Stripe for payment purpose, but I have an issue on IOS... People can't pay. The payment button is hovered over by the keyboard, and there is no button to close it like there is on Android. I can't succeed into making the popup scroll either. I'm using custom integration and didn't find anything to help me... Other than making everything from scratch with a custom modal and custom form. And I really don't want to do that. You can see the tiny top line of the blue button

Align navbar back button on right side

 ̄綄美尐妖づ 提交于 2019-12-23 22:17:28
问题 I'm developing an ionic app and I need to align the navbar back button on right side. The following is my code: <ion-view title="Home" ng-controller="HomeCtrl" style="padding-top: 50px"> <ion-nav-bar class="bar-balanced bar-dark"> <ion-nav-back-button></ion-nav-back-button> </ion-nav-bar> <ion-content scroll="true"> <ion-list> <ion-item ng-repeat="item in items" href="#/res/{{item}}"> {{item.toUpperCase()}} </ion-item> </ion-list> </ion-content> </ion-view> And I've tried following code for

Deeplinks gives empty path

南笙酒味 提交于 2019-12-23 21:17:15
问题 I have a problem of implementing DeepLinks. I can open the app from the URL like myapp://myapp.com/route. But it doesn’t handle path of it. It just opens the program. I open it with : this.deeplinks.route({ '/route': RoutePage }).subscribe(match => { // match.$route - the route we matched, which is the matched entry from the arguments to route() // match.$args - the args passed in the link // match.$link - the full link data console.log('Successfully matched route', match); }, nomatch => { //

apk big size with ionic 4 build

北慕城南 提交于 2019-12-23 21:04:16
问题 Before I got the output, it was 9 megabytes. but now it is 17.8MB. I opened apk in android studio with Analyze apk. assets folder is very big and there are several numbers from each file. ionic info: Ionic: ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 4.0.0-rc.2 @angular-devkit/build-angular : 0.12.4 @angular-devkit/schematics : 7.1.4 @angular/cli : 7.1.4 @ionic/angular-toolkit : 1.4.0 Cordova: cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1

how to show user name in menu

我与影子孤独终老i 提交于 2019-12-23 20:55:29
问题 I have a {{user_name}} variable in my app.component.ts and I want to use it for displaying the user name which I am getting from local storage after the user logs in. But this loads only at app start and I want to reload it after the user logs in. When I close and reopen app after log in it works fine and user name displayed. But at first, it shows only "hi" and doesn't show the user name. <ion-menu [content]="content" > <ion-header> <ion-toolbar> <ion-title> <p> HI! {{user_name}} </p></ion

Editing Ionic tab icon styles

佐手、 提交于 2019-12-23 20:41:44
问题 I am working on an Ionic project where the main navigation method is tabs. The center tab needs to stand out so I created a style in my scss like this: i.icon.ion-ios-camera { height: inherit; border-radius: 100em; background-color: #ff5b38; } I did this the way I did barbecue when ionic serve 'ing and inspecting, I find that my tab: <ion-tab title="Post" icon="ion-ios-camera" href="#/home/post"> <ion-nav-view name="tab6"></ion-nav-view> </ion-tab> gets compiled to: So I thought just to

Ionic 2 & collection-repeat

折月煮酒 提交于 2019-12-23 20:09:46
问题 I'm making *ngFor working well with Ionic 2 but I'd like to use collection-repeat 'cause it is more adapted to wide range of data. I'm loading the data in the construtor : import {Page, NavController, NavParams} from 'ionic-angular'; import {ListData} from './list-data'; @Page({ templateUrl: 'build/pages/list-browser/list-browser.html', providers: [ListData] }) export class ListBrowserPage { static get parameters() { return [[NavController], [NavParams], [ListData]]; // ]; } constructor(nav,

Permission is ALLOWED but not WRITE Android AngularJS with Ionic

ぐ巨炮叔叔 提交于 2019-12-23 19:44:51
问题 Hello everybody I have a problem a long time and decided to post , on some devices I can not write anything , this happens especially in mobile phone android(4.1-4.4) that does not have sdcard. Some phones usually work ( especially with android 5.0 ) with or without SDCARD . My routine is: CHECKS(READ) localStorage -> IF OK : AUTH AUTOMATIC -> UPDATE LOCALSTORAGE -> GO HOME PAGE. ELSE : USERS INFORMATION LOGIN AND PASSWORD -> AUTH -> SAVE LOCALSTORAGE -> GO HOME PAGE. ALREADY TRIED USE :

How to pass form data from Ionic 3 to PHP file?

半城伤御伤魂 提交于 2019-12-23 19:39:46
问题 I want to pass form data from Ionic 3 to php file which is located on localhost. Below is my Ionic button code: createEntry(name, description) { let body : string = "testname=" + name + "&testval=" + description, type : string = "application/x-www-form-urlencoded; charset=UTF-8", url : any = this.baseURI + "manage-data.php", method : 'POST', headers : any = new Headers({ 'Content-Type': 'application/json' }), options : any = new RequestOptions({ headers: headers }); alert(url); //Output: http

Displaying a FILE_URI image taken by Native Camera in Ionic 3

∥☆過路亽.° 提交于 2019-12-23 18:31:05
问题 How do you display a FILE_URI image taken by the user using @ionic-native/camera in Ionic 3? I can use Ionic Native's Camera to get a FILE_URI image URL, with a result like this: file:///var/mobile/Containers/Data/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX/tmp/cdv_photo_005.jpg However, When I try to display this image back to the user by referring to the URI in my view template, the image never loads. Things I've tried: -Using the image URI directly in the view <img src="{{profile.image}