ionic-framework

GetUserMedia - facingMode not recognized despite adapter.js

半世苍凉 提交于 2020-01-05 09:24:39
问题 I want to get the video stream of my rear camera in an Ionic Application. For this, I use getUserMedia that work correctly for the front camera. When I change the facing mode to 'environment' I got this error : Unknown constraint named facingMode rejected ConstraintNotSatisfiedError In my Ionic application I have already installed the npm package "webrtc-adapter". Here is my code to get the stream from the rear camera : this.constraints = { audio: true, video: {mandatory: { facingMode:

GetUserMedia - facingMode not recognized despite adapter.js

余生颓废 提交于 2020-01-05 09:23:12
问题 I want to get the video stream of my rear camera in an Ionic Application. For this, I use getUserMedia that work correctly for the front camera. When I change the facing mode to 'environment' I got this error : Unknown constraint named facingMode rejected ConstraintNotSatisfiedError In my Ionic application I have already installed the npm package "webrtc-adapter". Here is my code to get the stream from the rear camera : this.constraints = { audio: true, video: {mandatory: { facingMode:

how to select multiple checkboxes in ionic

梦想的初衷 提交于 2020-01-05 09:09:29
问题 I am using ionic framework for my app development and want to select multiple checkboxes on click of header checkbox or button. <ion-list> <ion-checkbox ng-model="filter.color">Colors</ion-checkbox> <ion-checkbox ng-model="filter.blue">Red</ion-checkbox> <ion-checkbox ng-model="filter.yellow">Yellow</ion-checkbox> <ion-checkbox ng-model="filter.pink">Pink</ion-checkbox> <ion-checkbox ng-model="filter.number">Number</ion-checkbox> <ion-checkbox ng-model="filter.one">1</ion-checkbox> <ion

angular 4 click button function is not fired

拥有回忆 提交于 2020-01-05 08:56:06
问题 I am trying to do a check if a text input is empty or not in angular 4. I am not using forms for this. It's just an input field. When I execute the addLocaton function in the button below the check needs to happen. my input field <ion-input type="text" placeholder="Enter a Town, Province or City" name="newPlace" [(ngModel)]="newPlace" id="empty"></ion-input> <button ion-button block type="submit" (click)="addLocation()">ADD AND SAVE MORE LOCATIONS</button> ts file addLocation(){ if( document

IONIC:Unable to install phonegap-plugin-push in ios app

余生长醉 提交于 2020-01-05 08:55:21
问题 I am new with ionic framework.Currently i am working on ionic iOS app. when i install phonegap-plugin-push i am getting error Failed to install 'phonegap-plugin-push':undefined Error: /Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help) i have searched it but no solution found yet! 回答1: I also got same kind of problem. In my case I used sudo ionic platform add ios This is worked well while building every plugins

Terminating unused http connections that are a result of img ng-src

本秂侑毒 提交于 2020-01-05 08:26:27
问题 I am developing an iOS and Android app (using ionic/angular) I have the following situation: I have a view that basically does this: <div ng-repeat="monitor in monitors"> <img ng-src = 'http://myserver.com/cgi-bin/videoFeed?id={{monitor}}' /> </div> Each monitor is actually an IP camera and what we are doing here is transmitting live feed as continuous JPG images (multipart/mime). What therefore happens is the img tag keeps showing new images continuously making it look like a live video feed

How to connect a post rest request to the add controller action using prefixes in cakephp

一曲冷凌霜 提交于 2020-01-05 08:23:10
问题 I code a client/server application. Server side is powered by CakePHP 2.4.7. Client side run with angularjs and cordova on mobile devices I use several cakephp route prefixes whose 'admin' and 'mobile'. (And I use $resource and $httpInterceptor angularjs factories to setup my REST requests.) I want to call /website/mobile/posts/add.json with json data posting. So I call /website/mobile/posts.json with a POST ajax query: The problem is here: the called controller action is 'index', not 'add';

When I start the App with GPS off , and later GPS is activated, Location is not detected

谁说我不能喝 提交于 2020-01-05 07:14:06
问题 I am having problems with GPS detection over Google Maps in Ionic App. When I start the App with GPS off and later I change from Settings device to GPS on, clicking by Find Me button - centerOnMe() function - the GPS is not working. The function responses always `Error: GPS Timeout! ERROR = 3` At the beginning I thought that was a cache problem but I have found out that is not that. It doesn´t matter the using $state.reload from the view. ¿does anyone get the same issue? Thanks for the

How to go to next input by tapping return key on an iPhone/iPad with Ionic2?

若如初见. 提交于 2020-01-05 06:17:07
问题 I am using Ionic Cordova to build an iPhone app. I have a login screen username input and password input plus a submit button. I cannot make to focus on password input after typing the username and tap "return". My login.html looks like this: <ion-list > <ion-item> <div id="loginlogo"></div> </ion-item> <ion-item> <ion-label stacked>Username</ion-label> <ion-input type="text" name="usernameInput" (keyup.enter)="focusAndGo()" [(ngModel)]="usernameInput"></ion-input> </ion-item> <ion-item> <ion

Life cycle events of app.component.ts

左心房为你撑大大i 提交于 2020-01-05 06:13:06
问题 Update: Actually, I have implemented "toggle menu" as on this doc.Please see that.The toggle menu is working fine.But I need to get the latest token when a user clicks the toggle menu.It works only with the constructor.After that, I cannot do that.That is may be due to the Root component.How can I achieve that? Ionic2 Toggle Menu Which life cycle event can I access after creating the app.component.ts component? First time it fires constructor() code.But after that none of the lifecycle events