Comments (2)
Notification只能设置TurmsRequest类型作为内容
Yes, Notification
is designed to accept TurmsRequest
only because all notifications are triggered by an action
. In Turms, TurmsRequest
can be considered the action
implicitly.
如何返回自定义的内容?
There is no official way to pass custom data to notification recipients because we suggest the client application developers let the clients accept the notifications, and perform custom business logic and CRUD data based on the notifications if they don't have a plan to modify the source code of Turms servers. The solution is quite flexible and adaptive.
But if you are sure that you want to modify the logic and the source code of Turms servers for your business, I can add a new protobuf field (e.g., repeated bytes extra_attributes
) in TurmsNotification
so that you can use it to pass any custom data.
If you need it, please comment so I can give a support plan to you.
from turms.
谢谢,不用了,我使用了turms来二次开发,其他地方改动的比较多,这里我自己加了一个TurmsNotification中加了一个,和Data类似。
from turms.
Related Issues (20)
- Share `spring-configuration-metadata.json` of turms properties
- Support pushing metrics
- Update the default BCrypt cost for admin passwords from 10 to 12 HOT 1
- Support updating outdated encoded passwords automatically on login
- Retry to watch change streams again if the MongoDB crashes
- 更换设备对获取离线数据的影响 HOT 1
- Provide admin API SDKs HOT 1
- Add a UI component to display admin API endpoints
- Support seaching logs
- Support display/search logs
- Respond with the status of all dependent services (e.g., MongoDB, Redis) in the health-check endpoint
- Allow admin users to have multiple roles HOT 1
- Checklist before updating to 0.11.0 HOT 1
- When it starts, nothing is output and it stops all of a sudden ? HOT 1
- 你好,请问能否提供一个Objective-C的SDK? HOT 1
- CREATE_GROUP_JOIN_REQUEST_REQUEST 疑问 HOT 3
- Add equivalent SQL examples for admin API requests HOT 1
- 添加好友成功的通知 HOT 2
- Provide more built-in admin roles
- Remove `turms-plugin-rasa` once we introduce a plugin for RAG HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turms.