This repository has been archived by the owner on Dec 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e7ce57
commit 360c342
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# NotificationPush | ||
此应用可以通过fcm从一台手机向另一台手机转发通知 | ||
|
||
This app is for forwarding your notification from one phone to another using the fcm tunnel | ||
|
||
## What you need | ||
* 一台旧手机作为服务器(An old phone used as server) | ||
* 一台可以接收fcm推送的主力机(Your daily phone which could receive fcm push) | ||
* 完成!(finish!) | ||
|
||
## What you need to do | ||
* [下载(download)](https://github.com/CJieLuo/NotificationPush/raw/master/app/release/app-release.apk "下载") | ||
* 为两台手机安装(Install for both phones) | ||
* 将主力机上的token(就是那堆乱码)复制到server的输入框中(Copy the token from daily phone to the input box on the server) | ||
* 取消电池优化(It's may be neccesary to turn off the battery optimization) | ||
* 现在,你应该能收到推送了(Now,you should have been able to recive the notification) | ||
|
||
### Only for users from China | ||
* 服务端可能必须24小时挂梯! | ||
|
||
# if you want to complier by yourself | ||
* 下载源码(Download the source code) | ||
* 在firebase中建立新项目(Create a new project in firebase) | ||
* 根据Google的firebase文档加入google-services.json文件(Add google-services.json file according to the offical document of Google) | ||
* 修改NotificationPush/app/src/main/java/com/RichardLuo/notificationpush/GetNotification.java中的常量Authorization和Sender为自己相应内容 | ||
(Change the constant 'Authorization' and 'Sender' to what you have in firebase console) | ||
* 编译(Compiler) |