ionic-framework

Visual Studio Tools for Apache Cordova stops work correct after update

谁说胖子不能爱 提交于 2019-12-24 16:17:44
问题 I am developing ionic application with Visual Studio Tools for Apache Cordova. Everything was OK until I updated Tools for Apache Cordova and TypeScript Tools for Visual Studio. After this update Ripple emulator became unstable and get the next error in the Output window. code:-32000 message:Debugger agent is not enabled The source map 'angular-sanitize.min.js.map' for file 'mdha:http://code.ionicframework.com/1.0.0-rc.5/js/ionic.bundle.min.js' could not be read from the specified location

How to use Cordova InAppBrowser into a HostedWebApps?

感情迁移 提交于 2019-12-24 15:42:43
问题 I have a website with 2 mobile-apps displayed with Cordova, and they works really great. But I have a problem : When an external link is triggered by the user, he go out of the application and don't have any possibility to come back on the App... (except close and reopen). I have installed inappbrowser according to this tutorial. Sounds very simple but not working... Console : cordova plugin add cordova-plugin-inappbrowser Link (supposed to trigger InAppBrowser - not working) : <a href="#"

Ionic3 Push notification

浪尽此生 提交于 2019-12-24 15:27:48
问题 Has anyone worked with notifications on ionic 3 IOS ? to a week trying to use the firabase push (FCM) but without success, most of the tutorials are out of date ... Does anyone know of any other way I can use or if someone has some example project of using FCM in IOS for me to use / learn 回答1: Code sample of using cordova-plugin-fcm in ionic 3. import {Platform} from 'ionic-angular'; import { FCM } from '@ionic-native/fcm'; @Component({ templateUrl: 'app.html' }) export class MyApp {

ionic multiple view states for one tab

允我心安 提交于 2019-12-24 14:43:09
问题 I have a four tab setup and it works just as desired. On one of the tabs however, I want there to be three states inside it. Reason being because I want the tab to stay active but while showing different content states. I made two extra states by adding "hidden" tabs but then the tab icon at the bottom isn't "active" anymore when using the additional states. How can I make it so that I can have multiple states for one tab while keeping that tab's icon active the whole time? I should mention

socket connection always failing

喜欢而已 提交于 2019-12-24 14:32:01
问题 I'm writing an application that connects to a sails server. This application is written with cordova , angularJS and Ionic . When I launch my application in my browser (with ionic serve ) the socket fails to connect to the server. Here is the message I get: GET http://localhost:8100/socket.io/?__sails_io_sdk_version=0.11.0&__sails_io_s…sails_io_sdk_language=javascript&EIO=3&transport=polling&t=1443472067762-4 404 (Not Found) The server is running locally on port 1337. I tried to change the

ng-repeater not working for JSON

江枫思渺然 提交于 2019-12-24 14:29:41
问题 here is my JSON [{"_id":{"$oid":"54357d7f62042c439bfd6279"},"imageType":"Image/jpg","Heading":"Test Heading","Description":"Test Discription","Image":"","created_at":"","infoType":"QuickInfo"},{"_id":{"$oid":"54357eb862042c439bfd627a"},"imageType":"Image/png","Heading":"Test Heading 2","Description":"Test Discription 2","Image":"","created_at":"","infoType":"QuickInfo"}] my repeater <ion-list> <ion-item ng-repeat="fact in facts track by $index" href="#/app/fact/{{fact._id}}"> {{fact.Heading}}

AngularJS: How to filter data in second select tag options based on first select tag's selected id

空扰寡人 提交于 2019-12-24 14:28:04
问题 I am developing a mobile application where there is a view where there are two select tags first select tag consist of options of teams & in the second select tag there are forms associated with team Ids that user select in first select tag. I want to filter the data of second select tag as per the team Id of first select tag on ng-change event. For the first select tag i have populated as follows: <select ng-change="showForms(name.id)" ng-model="name" ng-options="f.name for f in devices

GCM Registering with 2 registration Id's in my Ionic App via PhoneGap Push Plugin

自作多情 提交于 2019-12-24 14:08:15
问题 I have an Ionic App in the front end and a NodeJS app in the backend. I am trying to simulate a native app notification from front end. Now arise two questions. First there are two methods to register for GCM on google. One is via Console and one is via developers.google.com. While most of the tutorials go for the console method. Some go for the second method too. I am confused as to which method to follow as both give projectID and API Key. Second Question. I am receiving a regestration ID

How to show ionicModal on AngularJS app start?

蓝咒 提交于 2019-12-24 13:35:15
问题 How can I show ionicModal on app start? This code doesn't work angular.module('testApp', ['ionic']) .controller('MyController', function($scope, $ionicModal, $ionicPlatform) { $ionicPlatform.ready(function(){ $scope.initApp = function() { // some init variables here if (someVariable){ $scope.openModal(); } } // init ionicModal here $scope.openModal = function() { $scope.modal.show(); }; $scope.initApp(); }); }); but this work angular.module('testApp', ['ionic']) .controller('MyController',

click event ng-click not working

爷,独闯天下 提交于 2019-12-24 12:53:11
问题 History and Home page are work fine but 'ng-click="toggleMenu()"' are not working so please help me click event ng-click="toggleMenu()" is not working.. can anyone help me to solve it? My code is, <ion-tab title="History" icon-off="ion-document" icon-on="ion-document-text" href="#/tab/history"> <ion-nav-view name="tab-history"></ion-nav-view> </ion-tab> <a class="button" ng-click="toggleMenu()">More</a> .controller('MoreCtrl', function($scope,$ionicSideMenuDelegate) { $scope.toggleMenu =