firebase hosts cloudflare
ERR_TOO_MANY_REDIRECTS Or Error 526 SSL change Full or Full (strict) just try
ERR_TOO_MANY_REDIRECTS Or Error 526 SSL change Full or Full (strict) just try
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.child(‘admins’).hasChild(auth.uid)” } } } ...
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 ...
https://github.com/rodrigoreal/ionic2-angularfire-login ========== https://github.com/angular/angularfire2/issues/560 https://blog.khophi.co/angularfire2-authentication/ https://github.com/angular/angularfire2/issues/568 https://github.com/angular/angularfire2/issues/566
Now try to use firebase for design app. But get somethings about : At offline, you can read, but add, delete, edit can not, this “can not” is snapshot that need to online sync, then get data. So firebase example is use models or objects to keep data, but you change activeity or clearn app, then objects data loss. maybe can use Serialization, but not good idea. Can’t control local database. This is fun, maybe firebase no local database or other methods for offline. Some app need offline, for counting data, CURD data, keep then sync, counting age. ...