ionic2 FCM get device token

https://github.com/fechanique/cordova-plugin-fcm 1、 ionic start getdevicetoken blank –v2 2、ionic plugin add cordova-plugin-fcm –save 3、 firebase console -> project setting -> add your project a. package name: copy from config.xml id=“com.ionicframework.getdevicetokenxxxxxx” b. add project then download google-services.json 4、put google-services.json on getdevicetoken directory, don’t put getdevicetoken/platforms/android or …./ios 5、ionic run android ( remeber open android emule) =====If success, contiune===== 6、src/pages/home a. home.html replace <ion-content <ion-textarea rows=“6” [value]=“devicetoken”> <button ion-button (click)=“getdevicetoken()"> getdevicetokens <button ion-button (click)=“showdevicetoken()"> showdevicetoken <button ion-button (click)=“Notification()"> Notification ...

2017-01-22 · 1 min · 205 words · Me

ionic2 google map

Must Remeber css show MAP https://forum.ionicframework.com/t/ionic-2-typescript-google-maps/53006/26 https://github.com/vijtad/Ionic-2-using-sebm-google-map https://github.com/SebastianM/angular2-google-maps http://www.joshmorony.com/ionic-2-how-to-use-google-maps-geolocation-video-tutorial/ http://vpt-deeplearner.tech/2016/11/24/ionic-2-an-example-of-googlemap-using-sebm-angularjs-directory/ https://forum.ionicframework.com/t/ts2304-cannot-find-name-google/58725/26

2017-01-12 · 1 min · 11 words · Me

ionic2 example

https://github.com/driftyco/ionic-conference-app/tree/typescript

2017-01-12 · 1 min · word · Me

ionic2 firebase FCM FCM_TOKEN Device_token Sender_id

https://forum.ionicframework.com/t/push-notifications-with-ionic-2/63851/4 https://github.com/fechanique/cordova-plugin-fcm ===== https://www.youtube.com/watch?v=7yXtzhqT1uk https://medium.com/@ankushaggarwal/push-notifications-in-ionic-2-658461108c59#.ff6hz41ot .sender_id who is sender or This guy is send message. .FCM_token (api_key) it’s right to use FMC, who get token, then can send .Device token this device (which device) Where is come from? .sender_id 、 FCM_token from FCM (firebase) .Device_token from device How to get? .sender_id 、 FCM_token : login firebase console -> settings -> colud messageing .Device_token : If ionic2, when you use Push @ionic/cloud-angular push.register().then(t: PushToken) this time get Push Token. see video 7:54 ...

2017-01-05 · 1 min · 188 words · Me

angular2 ionic2 angularfire2 json <-> object

authstat json <-> object import { Storage } from ‘@ionic/storage’; import { FirebaseAuthState } from ‘angularfire2’; // authstate object -> json this._auth.signInWithEmailAndPassword(this.loginForm.value.email, this.loginForm.value.password) .then((authData: FirebaseAuthState ) => { this.storage.set(‘alluserinfo’, JSON.stringify(authData)); }); //json -> authstate object this.storage.get(‘alluserinfo’).then((t_value) => { let value: FirebaseAuthState; value = JSON.parse(t_value); });

2016-12-22 · 1 min · 45 words · Me