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()">

繼續閱讀

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

繼續閱讀

Data Binding Directive

http://www.sqeeex.com/201605/27.html {{value}} 和 [property]=‘value’ 变量绑定在Component中,只要在Component中控制变量值改变,dom中就会更新,它是单向的。 (event) 是事件绑定,是单向的,在dom中触发,从而告知Component。 [(ng-model)]或者[(ngModel)] 实现双向绑定, angular1中,我们要实现双向绑定是用ng-model=“xx”,angular2中从用法上来说确实只是多加了两个括号。

繼續閱讀

best easy know 1、auth != null – only auth pass user ( login success user) 2、$uid === auth.uid – usually only data owner can read or modify $userId === auth.uid ========== 1、only admins group can wirte data a. Database data add admins -> add uid:true (uid -> user in admins group) b. Database rule add { “rules”: { “admins”:{ “.read” : “auth != null && root.child(‘admins’).hasChild(auth.uid)”, “.write” : “auth != null && root.

繼續閱讀

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.

繼續閱讀

1、crate virtualbox vm, install ubuntu 16 This step have many tech, just find on google ps: start Virtual Box in background make link, link content is vboxheadless -startvm “your vm’s name” check internet is ok~~ 2、Use account that when you install ubuntu, create user account. Now example username is “Ubuntu”. Login Ubuntu use “Ubuntu” account. see https://www.apachefriends.org/download.html choese 7.0.13 / PHP 7.0.13 wget https://www.apachefriends.org/xampp-files/7.0.13/xampp-linux-x64-7.0.13-1-installer.run chmod +x xampp-linux-x64-7.

繼續閱讀

作者的圖片

Sue boy

Sueboy Can support You

CIO

Taiwan