ionic-framework

Ionic cant get Reg ID for GCM

夙愿已清 提交于 2020-01-17 13:43:02
问题 I read every topic and tried every way. About 2 days and i still didnt get Reg ID. MY Sender ID is right and check every example in real device. Also i tried this one this one this one this one And thoses are just some pages. I almost tried everything and still get just okey message in success handler. Can someone tell me where is my mistake ? var xxx = angular.module('starter', ['ionic', 'ngCordova']) xxx.run(function ($ionicPlatform, $cordovaPush) { $ionicPlatform.ready(function () { if

Ionic cant get Reg ID for GCM

末鹿安然 提交于 2020-01-17 13:42:27
问题 I read every topic and tried every way. About 2 days and i still didnt get Reg ID. MY Sender ID is right and check every example in real device. Also i tried this one this one this one this one And thoses are just some pages. I almost tried everything and still get just okey message in success handler. Can someone tell me where is my mistake ? var xxx = angular.module('starter', ['ionic', 'ngCordova']) xxx.run(function ($ionicPlatform, $cordovaPush) { $ionicPlatform.ready(function () { if

How to hide/remove Cordova Windows 10 app back button?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-17 08:23:08
问题 The windows 10 app generated by cordova shows a back button on extreme top left, when I run the app in desktop. When user taps the button, the application behaves like a web. This option is really annoying. Is there anyway that I can hide or remove the back button? Looking for solution preferably in Javascript, C# can be optional. 回答1: Is there anyway that I can hide or remove the back button? Looking for solution preferably in Javascript, C# can be optional. If you are refering to the back

Ionic statusbar not hiding

早过忘川 提交于 2020-01-17 06:47:20
问题 I have added the plugin Cordova-plugin-statusbar . It was working before I updated ionic and Cordova. After Updating, its not working. I'm totally confused and revert back to the old version, then too its not working! Kindly help me guys! if (window.StatusBar) { StatusBar.hide(); ionic.Platform.fullScreen(); } This is the code I have used to hide! 回答1: Make sure cordova-plugin-statusbar is correctly setup and try this: $ionicPlatform.ready(function() { ionic.Platform.fullScreen(); if (window

Ionic statusbar not hiding

﹥>﹥吖頭↗ 提交于 2020-01-17 06:47:03
问题 I have added the plugin Cordova-plugin-statusbar . It was working before I updated ionic and Cordova. After Updating, its not working. I'm totally confused and revert back to the old version, then too its not working! Kindly help me guys! if (window.StatusBar) { StatusBar.hide(); ionic.Platform.fullScreen(); } This is the code I have used to hide! 回答1: Make sure cordova-plugin-statusbar is correctly setup and try this: $ionicPlatform.ready(function() { ionic.Platform.fullScreen(); if (window

Ionic side menu not present on each view

不问归期 提交于 2020-01-17 05:48:08
问题 Take a look at the following plunker. On the start page "foo" you can see that we have a side menu which opens by clicking the icon on the top left corner or by sliding from left side to right side. If you now press on the "next" button to navigate to the next view "bla" you will notice that at the left upper corner a new button appears - the back button. Thats good! I want that to be like that! But i also want to be able to slide in the side menu but it is not possible. I thought when i

How can I put an Ionic 2 Modal in a separate file?

↘锁芯ラ 提交于 2020-01-17 05:35:07
问题 I'm using Ionic 2 and want to use a Modal for different pages. One use case is the creation and editing of messages: I want to display a "new message" button on the dashboard page, another "new message" button on the messages list page and a third button "edit message" on the message view page. All of those buttons should open the same MessagesEditModal. My current code looks like that: import { Component } from '@angular/core'; import { Modal, NavController, ViewController } from 'ionic

Ripple emulator failing to emulate

守給你的承諾、 提交于 2020-01-17 01:48:47
问题 I have been using Ripple via Visual Studio 2015 to debug my Ionic app but it has stopped working for me. I get a message saying that it looks like the zombie apocalypse has started and two options - "Wait" or "Fire". The "Fire" is supposed to purge Ripple's settings. Neither works. I created a new app using the Ionic tabs template, and it fails to emulate too, so I don't think the problem is in my app. Any advice on how I can get Ripple working again? Edit I opened the Javascript console

Using ionic 4,Trying to give an exit alert message to the user before the app gets closed using hardware back button press event

痴心易碎 提交于 2020-01-16 19:38:14
问题 On my very initial stage.I am trying to give an ‘Exit the App - Yes/No? ‘ alert when the user presses the hardware back button either from the Login Page or from the home page (after login). The problem I am facing is that the Exit alert message appears on every page when I press the back button and not simply on the Login or home page. Moreover automatically navigating backwards regardless if I press ‘No’ option in the alert box. ] Apologies if have done something wrong I this my first post

Storing date in Firebase

只愿长相守 提交于 2020-01-16 18:35:30
问题 I'm doing an app with Ionic and I need to store date in my firebase. But it's getting out of order, i tried methodos like orderByChild(); but nothind is working. I need my firebase to store like this: 1 Mar 2018 5 Mar 2018 10 Mar 2018 Instead its keeping like this: 1 Mar 2018 10 Mar 2018 5 Mar 2018 There's anyway that I can get it in order? Here's where I got my date: function getCurrentDate(){ var today = new Date(); console.log(today.getMonth()); var dd = today.getDate(); var mm = today