ionic-framework

How to open detail page when click notification in Ionic

怎甘沉沦 提交于 2019-12-21 23:43:30
问题 i m using Ionic platform to create a mobile app and need a help about this situation. I can take regId with this code and then can send notification. But when i send a notification about a shop from my app, how can i open that shop's page when click notification that i get ? var pushNotification; function onDeviceReady() { document.addEventListener("backbutton", function (e) {}, false); var pushNotification = window.plugins.pushNotification; if (device.platform == 'android' || device.platform

Angularfire2 error TS2305

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 23:18:59
问题 I'm new to the ionic framework world and now I'm trying to create a app for a schoolproject. To save data in the app I'll be using firebase (for the first time). I try to import Angularfire and FirebaseListObservable to my .ts file but i get this error message: "TS2305:Module "'C:/Users/matss/myRecords/node_modules/angularfire2/index"' has no exported member 'AngularFire'. Here's my import in app.module.ts import { AngularFireModule } from 'angularfire2; export const firebaseConfig = { apiKey

Ionic v3: Group list by date/day

[亡魂溺海] 提交于 2019-12-21 22:37:51
问题 In good old version 1 of Ionic I was able to build an event-list grouped by date like this: <ion-list ng-repeat="(key, value) in events| groupBy: 'event.date'"> <div class="item item-divider" ng-if="value"> {{ ::key | event.date }} </div> <ion-item class="item" ng-repeat="event in value track by event.event.event_id"> {{ ::event.event.title }} </ionic-item> </ion-list> While the events object looks like this (event #1 and #3 share the same date): { "events": [ { "id": 1, "date": "2017-12-26",

Adding Facebook login to ionic app

情到浓时终转凉″ 提交于 2019-12-21 21:24:47
问题 I am newbie to a Angular and Ionic as well. Tried the following tutorial: https://www.sitepoint.com/how-to-integrate-facebook-login-into-a-cordova-based-app/ Steps performed: 1.In app browser is installed. Included libraries. <script src="lib/ngCordova/dist/ng-cordova.js"></script> <script src="lib/ng-cordova-oauth/dist/ng-cordova-oauth.js"></script> <script src="cordova.js"></script> Include code inside index.html before body closing tag: <script> window.fbAsyncInit = function() { FB.init({

FIrebase Google auth operation not supported in this environment

和自甴很熟 提交于 2019-12-21 20:58:31
问题 I am working on ionic and firebase project, made a login page to sign in with google. I am using this Below. var provider = new firebase.auth.GoogleAuthProvider(); firebase.auth().signInWithRedirect(provider).then(function (result) { var token = result.credential.accessToken; // The signed-in user info. var user = result.user; $state.go('app.homepage'); }).catch(function (error) { }); firebase.auth().getRedirectResult().then(function (result) { if (result.credential) { var token = result

Ionic firebase token alway null and no token refresh

强颜欢笑 提交于 2019-12-21 20:38:41
问题 i'm in trouble with ionic firebase module (https://ionicframework.com/docs/native/firebase/) during the last 2 days. I don't understand why my firebase token is alway NULL in the following code section in app.component.ts : this.platform.ready().then(() => { this.firebase.getToken().then(firebaseTokenSuccess).catch(firebaseTokenFailure); this.firebase.onTokenRefresh().subscribe(firebaseTokenRefresh); function firebaseTokenRefresh(tkn) { return alert("New token received: " + JSON.stringify(tkn

ionic2 : content in slides not scrolling

孤者浪人 提交于 2019-12-21 20:23:18
问题 I have a couple of slides which have dynamic content that is added to them. The problem is the content inside of the slides doesn't scroll. So if I have a lot of items only some show and there is no ability to slide. How can I make it so the content in my lists slides inside of their slides? <ion-content> <ion-slides (change)="onSlideChanged($event)"> <ion-slide > <ion-list> <ion-item *ngFor="#item of items1; #i = index"> <h2>{{item}</h2> </ion-item> </ion-list> </ion-slide> <ion-slide> <ion

ionic2 : content in slides not scrolling

≡放荡痞女 提交于 2019-12-21 20:23:06
问题 I have a couple of slides which have dynamic content that is added to them. The problem is the content inside of the slides doesn't scroll. So if I have a lot of items only some show and there is no ability to slide. How can I make it so the content in my lists slides inside of their slides? <ion-content> <ion-slides (change)="onSlideChanged($event)"> <ion-slide > <ion-list> <ion-item *ngFor="#item of items1; #i = index"> <h2>{{item}</h2> </ion-item> </ion-list> </ion-slide> <ion-slide> <ion

Ionic template content not showing

别来无恙 提交于 2019-12-21 20:15:24
问题 I've made a basic menu navigation with Ionic using ion-side-menus and an Angular state mechanism as described at http://joelhooks.com/blog/2013/07/22/the-basics-of-using-ui-router-with-angularjs/ but no content is showing up in the center section of the page when home is loaded or any of the menu's items are clicked. Here's the simplified HTML ... <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width

ionic tabs: How to reuse the same detail page accross different tabs

主宰稳场 提交于 2019-12-21 19:31:43
问题 Here are two posts which basically describe the same need as mine. Unfortunately, these have been left with no concrete solution. http://forum.ionicframework.com/t/reuse-master-detail-page-template-between-tabs/17493 http://forum.ionicframework.com/t/same-detail-page-for-2-different-tabs-with-history/17425 In order to explain a bit better what we're trying to achieve, please refer to the 2 charts below. I trust that chart 1 needs no explanation as it is the classic use of tabs UI component.