ionic2

How can i find `SENDER ID` in firebase?

血红的双手。 提交于 2020-05-25 18:37:40
问题 I am creating Push notification demo in ionic 2. I have tried to generate server key and sender key from firebase. i have follow this tutorial. but I can not found cloud messaging tab in my firebase project setting screen as shown bellow image and there is no Server key and sender Id . I need SENDER ID for create push notification in my app as bellow, cordova plugin add phonegap-plugin-push --variable SENDER_ID=12341234 --save 回答1: Here is the steps, Go to Firebase Console Select your project

How can i find `SENDER ID` in firebase?

自闭症网瘾萝莉.ら 提交于 2020-05-25 18:37:22
问题 I am creating Push notification demo in ionic 2. I have tried to generate server key and sender key from firebase. i have follow this tutorial. but I can not found cloud messaging tab in my firebase project setting screen as shown bellow image and there is no Server key and sender Id . I need SENDER ID for create push notification in my app as bellow, cordova plugin add phonegap-plugin-push --variable SENDER_ID=12341234 --save 回答1: Here is the steps, Go to Firebase Console Select your project

Ionic2 round segment-button

喜你入骨 提交于 2020-05-15 08:45:48
问题 does anyone know how to change the css of a segment- button from square to round ? I tried using normal css but it gets wierd when ionic2 tries to transform the button on segment-activated Here is a Plunker example <ion-segment [(ngModel)]="date" danger> <ion-segment-button value="1"> 1 </ion-segment-button> <ion-segment-button value="2"> 2 </ion-segment-button> <ion-segment-button value="3"> 3 </ion-segment-button> </ion-segment> With normal css I failed. and it gets weird when you select

Fabs With Labels In Ionic 3

流过昼夜 提交于 2020-05-13 04:34:31
问题 I am using the Ionic 3 Framework and want to insert the following type of fab menu in my Ionic 3 App. Special Fab Menu: 回答1: In your SCSS file: button[ion-fab] { overflow: visible; position: relative; ion-label { position: absolute; top: -8px; right: 40px; color: white; background-color: rgba(0,0,0,0.7); line-height: 24px; padding: 4px 8px; border-radius: 4px; } } .fab{ contain: layout; } Your HTML file: <ion-fab bottom right > <button ion-fab>Share</button> <ion-fab-list side="top"> <button

Fabs With Labels In Ionic 3

时光总嘲笑我的痴心妄想 提交于 2020-05-13 04:34:28
问题 I am using the Ionic 3 Framework and want to insert the following type of fab menu in my Ionic 3 App. Special Fab Menu: 回答1: In your SCSS file: button[ion-fab] { overflow: visible; position: relative; ion-label { position: absolute; top: -8px; right: 40px; color: white; background-color: rgba(0,0,0,0.7); line-height: 24px; padding: 4px 8px; border-radius: 4px; } } .fab{ contain: layout; } Your HTML file: <ion-fab bottom right > <button ion-fab>Share</button> <ion-fab-list side="top"> <button

Ionic 2 - How to make a login post request?

為{幸葍}努か 提交于 2020-04-16 03:33:48
问题 I need to implement login in my Ionic 2 app. For now I just need to be sure that the email and the password are properly received and get back a basic response. I have successfully tested a GET request to the API and it is properly working, but I am not able to get the POST request working. I have tried two approaches: Using subscribe : Login component: submitLogin() { var email = this.loginForm.value.email.trim(); var password = this.loginForm.value.password.trim(); this.userService

Ionic 2 - How to make a login post request?

青春壹個敷衍的年華 提交于 2020-04-16 03:33:34
问题 I need to implement login in my Ionic 2 app. For now I just need to be sure that the email and the password are properly received and get back a basic response. I have successfully tested a GET request to the API and it is properly working, but I am not able to get the POST request working. I have tried two approaches: Using subscribe : Login component: submitLogin() { var email = this.loginForm.value.email.trim(); var password = this.loginForm.value.password.trim(); this.userService

Ionic2中ion-tabs输入属性

无人久伴 提交于 2020-04-01 08:45:42
水平有限,高手请绕道。 1、设置标签栏的位置 在Ionic2中Tabs的使用很多,但默认情况下IOS、Android、wp上显示位置都不同(如下图),影响了产品的一致性,找到好多资料,都没搞定,今天查看官方的资料时,发现其实很简单。 需要的效果: <ion-tabs tabbarPlacement="bottom"> <ion-tab [root]="tab1Root" tabTitle="Home" tabIcon="home"></ion-tab> <ion-tab [root]="tab2Root" tabTitle="About" tabIcon="information-circle"></ion-tab> <ion-tab [root]="tab3Root" tabTitle="Contact" tabIcon="contacts"></ion-tab> </ion-tabs>    tabbarPlacement参数是两个值:top和bottom,修改这两个值,就可以放上放下的更改了。 另外,还有几个属性: 参数 类型 说明 selectedIndex number 第一次加载时,默认选择的选项卡的索引值。如果没有设置索引,它将默认使用0,即第一个选项卡。 preloadTabs boolean 设置是否要预加载的所有选项卡: true , false .

Difference between Ionic Storage and Native Storage?

若如初见. 提交于 2020-03-18 12:27:11
问题 I'm Actually using Ionic Storage. and I heard About The Ionic Native Storage I Don't Know the Exact Difference Between Them. Which One Is Preferred to use? Which is the Best Choice? Thank You!, 回答1: They have basically the same purpose and both work with key/value to store items, but i think Ionic Storage is better and i'll tell why. The Native Storage need and will only work with the plugin instaled, so if there's no plugin or if it's a webapp the user can't use the storage. It's intended to

Error: Cannot find module '../lib/utils/unsupported.js' while using Ionic

纵饮孤独 提交于 2020-03-12 06:47:05
问题 I always get this error message when I run "Ionic start project name": Error message Running command - failed![ERROR] An error occurred while running npm install (exit code 1): module.js:471 throw err; ^ Error: Cannot find module '../lib/utils/unsupported.js' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21 at