FCM-for-Mojo icon indicating copy to clipboard operation
FCM-for-Mojo copied to clipboard

TODO

Open RikkaW opened this issue 7 years ago • 33 comments

  • [x] 把扫码什么的通知分开
  • [x] 收到二维码时下载,点击通知打开扫码
  • [x] 服务端应该根据应用内设置决定是否发送
  • [ ] DND
  • [x] 黑名单
  • [ ] 更新头像开单独一页
  • [ ] 前台应用检测开单独一页
  • [x] 修当最后一个通知被清除时 同时清除 group summary true 的那个通知
  • [x] 自定义通知图标 / 标题 (先要装到 /system/priv-app)
  • [x] 用奇怪的方法拿到正在运行的应用
  • [x] 直接将 token 交给服务端
  • [x] 更新头像时可以选择只更新缺少的
  • [x] 加入 Google play IAP 来 pay Rikka

RikkaW avatar Apr 23 '17 11:04 RikkaW

补充几条个人认为有需求的点(

  • [ ] 免推送时段 (DND)
  • [x] 通知回复后依旧可见
  • [x] 群组推送列表可选择为推送的群组或不推送的群组

kotomei avatar Apr 23 '17 14:04 kotomei

  • [ ] 可自定义的通知呼吸灯
  • [ ] 自动更新好友头像
  • [ ] ~~阅读后更改成已读状态(本项目不可实现)~~

WordlessEcho avatar Apr 28 '17 06:04 WordlessEcho

@GongJianwei 阅读后更改成已读状态 这个是做不到的.. 自动更新好友头像 这个要怎么自动呢..

RikkaW avatar Apr 28 '17 06:04 RikkaW

@RikkaW 理想状态:服务器收到消息时,自动检测头像是否更变,如更变就向客户端发送刷新请求 现实:客户端一段时间内自动刷新 我也知道改为已读状态几乎是不可能由本项目实现的……现在这个理想状态我也觉得无法实现

WordlessEcho avatar Apr 28 '17 06:04 WordlessEcho

  • [ ] 与QQ通知增强合并/兼容,以实现无缝信息交流途径迁移
  • [x] 接到登录通知后,自动将登录qr code从图床下载到本机
  • [x] 把Perl mod "RikkaFCM.pm"上传到上游项目 https://github.com/sjdy521/Mojo-Webqq/tree/master/lib/Mojo/Webqq/Plugin
  • [x] 更新文档
  • [ ] 内建的可简易发起会话/消息记录功能(界面类似aosp的联系人/短信这样的

simonsmh avatar Apr 28 '17 07:04 simonsmh

@simonsmh 我来上传 Perl mod 吧,手头有 Push 权限的

kotomei avatar Apr 28 '17 09:04 kotomei

好吧( 或许还是先发个pr比较好?

kotomei zhang [email protected]于2017年4月28日周五 17:27写道:

@simonsmh https://github.com/simonsmh 我来上传 Perl mod 吧,手头有 Push 权限的

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/RikkaW/FCM-for-Mojo/issues/1#issuecomment-297952401, or mute the thread https://github.com/notifications/unsubscribe-auth/AJEkg11ZRGYuOBMFkQH4IP6YbycD2S4nks5r0bD1gaJpZM4NFYnG .

simonsmh avatar Apr 28 '17 09:04 simonsmh

v0.1.1多信息通知有些问题,新通知会吃掉旧通知QwQ

Konglolin avatar Apr 29 '17 01:04 Konglolin

@simonsmh 这已经相当于做一个简易的 QQ 了,会不会因为触动腾讯的利益而导致本项目遭到封杀?

WordlessEcho avatar Apr 29 '17 03:04 WordlessEcho

怎么会啊 原本gcmmojo也有这个功能的,但ui难看使用不方便

没有字的回音 [email protected]于2017年4月29日周六 11:29写道:

@simonsmh https://github.com/simonsmh 这已经相当于做一个简易的 QQ 了,会不会因为触动腾讯的利益而导致本项目遭到封杀?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/RikkaW/FCM-for-Mojo/issues/1#issuecomment-298144059, or mute the thread https://github.com/notifications/unsubscribe-auth/AJEkg4LQMTtI_zN399BYVT74APeRAAhOks5r0q6BgaJpZM4NFYnG .

simonsmh avatar Apr 29 '17 03:04 simonsmh

@simonsmh 我觉得要从利益方面上分析这个问题,当然本项目也不应该因为这个问题作茧自缚

WordlessEcho avatar Apr 29 '17 03:04 WordlessEcho

我觉得要看rikka够不够懒🤣( mojo-webqq自身使用的就是腾讯自家的api,本身作为客户端就局限很大(不能收发图之类的),真要有限制早就关了

没有字的回音 [email protected]于2017年4月29日周六 11:37写道:

@simonsmh https://github.com/simonsmh 我觉得要从利益方面上分析这个问题,当然本项目也不应该因为这个问题作茧自缚

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/RikkaW/FCM-for-Mojo/issues/1#issuecomment-298144392, or mute the thread https://github.com/notifications/unsubscribe-auth/AJEkgzsRYFaAzXBPpc4pQO-w152jb3Duks5r0rBlgaJpZM4NFYnG .

simonsmh avatar Apr 29 '17 03:04 simonsmh

  • [ ] 群消息与好友消息分成两张卡片推送 (或许能解决不同优先级时消息无法弹出的问题);

  • [ ] 在QQ前台运行时不显示通知,但仍开启提示音/振动;

guozy2001 avatar May 04 '17 12:05 guozy2001

  • [x] 在 Wiki 中写明「特权 API 服务」的用法

WordlessEcho avatar May 07 '17 16:05 WordlessEcho

nginx 有自带的 perl 模块,能否做些什么?

simonsmh avatar Aug 23 '17 01:08 simonsmh

@simonsmh 第一次听说 Nginx 有这个东西,当然我也看到它是实验性的 Module ngx_http_perl_module

WordlessEcho avatar Aug 23 '17 05:08 WordlessEcho

@simonsmh

It is thus recommended to perform only such operations that have predictable and short execution time, such as accessing the local file system.

不过话说回来,应该够 Rikka 实现重启操作?

WordlessEcho avatar Aug 23 '17 05:08 WordlessEcho

用的是 nginx-extras 预编译软件包,--with_http_perl_module=dynamic

$ ps -ef|grep perl root 16551 700 0 01:00 pts/5 00:02:43 perl start.pl $ cat nginx.conf ... load_module /usr/lib/nginx/modules/ngx_http_perl_module.so user root; ... location ~ /ffm/stop { perl ' sub { kill("KILL",16551); return "200"; } '; } 进程被杀,返回200

其实是可以扔掉nodejs的(逃

要是start.pl有pid就好了

simonsmh avatar Aug 23 '17 05:08 simonsmh

@simonsmh 这样的话,需要重编 Nginx,虽然可能不是很难,但并不是所有人都有编译环境 当然我认为这种方式是可行的,个人意见:作为一个备选项与 Node.js 一同开发

WordlessEcho avatar Aug 23 '17 05:08 WordlessEcho

用的是 nginx-extras 预编译软件包

apt install nginx-extras 服了你了23333

simonsmh avatar Aug 23 '17 05:08 simonsmh

我看到扣头妹在写dockerfile,我觉得docker用用nodejs倒是挺好的,但vps上已经挂上nginx的就没什么必要了

simonsmh avatar Aug 23 '17 05:08 simonsmh

我又被 dalao 嘲讽了,好气啊 同时我似乎注意到了一点:CentOS 是没有这个包的

WordlessEcho avatar Aug 23 '17 10:08 WordlessEcho

CentOS 啊,不如立即 go die 吧

野生的扣头妹出现了!

simonsmh avatar Aug 23 '17 10:08 simonsmh

CentOS 是没有这个包的

~~所以说 CentOS 这种用着上古软件包的发行版还是丢掉为好~~

kotomei avatar Aug 23 '17 10:08 kotomei

@kotomei 在座的各位,只有你没有资格说这句话,教程里还用 CentOS 呢 (

WordlessEcho avatar Aug 23 '17 10:08 WordlessEcho

emmc...所以考虑通用性的话.... ~~其实作为 Arch Linux 用户我也不兹磁 CentOS 这种上古发行版~~

haruue avatar Aug 23 '17 11:08 haruue

各个平台模块安装这里都有说明的 http://nginx.org/en/linux_packages.html arch linux倒是可以找一波AUR

还有要澄清一下nginx-extras其实是个空包perl模块在这

simonsmh avatar Aug 23 '17 11:08 simonsmh

各种黑魔法……吓人 ~~最后还是没搞懂 CentOS 怎么装~~

WordlessEcho avatar Aug 23 '17 11:08 WordlessEcho

wget http://nginx.org/keys/nginx_signing.key && sudo rpm --import nginx_signing.key

edit /etc/yum.repos.d/nginx.repo

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/OSRELEASE/$basearch/
gpgcheck=0
enabled=1

Replace “OSRELEASE” with “6” or “7”, for 6.x or 7.x versions, respectively.

用 rpm 安装 nginx 和 nginx-module-perl (x

simonsmh avatar Aug 23 '17 11:08 simonsmh

npm install nginx-module-perl

应该需要加上 -g 吧(逃

教程里还用 CentOS 呢

怪我咯( 大不了下版我换 Debian(

kotomei avatar Aug 23 '17 11:08 kotomei