EExcel 丞燕快速查詢2

EExcel 丞燕快速查詢2
EExcel 丞燕快速查詢2 https://sandk.ffbizs.com/

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



So how to work?  (If see youtube video, I guess)

.FCM_token:   Who take token, who can send message. FCM get FCM_token, then send message to send_id  under all register.

.sender_id: App or reciver must have this info, when message come from FCM into Phone, then check send_id is correct or not.

.Device_token:
A、Device must send(register) phone's Device_toke to FCM sender_id, then register info(device_token) under send_id. If not register, send_id can't know any devices.

B、Sometime send message to only one device, must use FCM_token + Device_token then only send to one device.

(This Video 9:38 bottom have "Device Options")

(https://github.com/aggarwalankush/push-notification-server
AndroidPush.java  see code have "YOUR_DEVICE_TOKEN" )



https://medium.com/@ankushaggarwal/push-notifications-in-ionic-2-658461108c59#.ff6hz41ot
https://devdactic.com/ionic-push-notifications-guide/


magento install on xampp ubuntu

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.0.13-1-installer.run
install
sudo ./xampp-linux-x64-7.0.13-1-installer.run
then Yes Yes Yes Yes

PS:so now have permit have three :  root 、 daemon、 ubuntu

/opt/lampp and /opt/lampp/*  some directory is root, some is ubuntu or daemon.


2-1、need phpmyadmin, so see this
http://sueboy.blogspot.tw/2016/01/xampp-phpmyadmin-httpd-xamppconf.html

put

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
#Require local
Require all granted
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 192.168.0.0/8 xxx.ooo.xxx.ooo/24
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
xxx.ooo.xxx.ooo/24  can remove, by yourself use.

then check  http://192.168.xxx.xxx/phpmyadmin is ok

PS:Usually I move /opt/lampp/htdocs  all files to allbackup directory that be create by myself.


3、install magento

download Magento-CE-2_1_3_tar_gz , just download from magento website, then upload ubuntu, copy file to /opt/lampp/htdocs

tar zxvf Magento-CE-2_1_3_tar_gz
PS: IF you upload use root, maybe use "sudo tar"

3-1、 check /opt/lampp/etc/httpd.conf

http://www.computernetworkingnotes.com/ubuntu-12-04-tips-and-tricks/how-to-fix-permission-of-htdocs-in-ubuntu.html

User
Group

usually  is "daemon"


3-2、Set ownership and permissions for the shared group

http://devdocs.magento.com/guides/v2.1/install-gde/prereq/file-system-perms.html

cd /opt/lampp/htdocs

find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \;
find var vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} \;
chown -R :daemon
chmod u+x bin/magento
PS: when you "sudo tar", maybe now this step need use "sudo"

4、now see http://192.168.xxx.xxx  , start install magento......