jpush / jpush/jpush-react-native
请问本地通知,如何设置时间呢,addLocalNotification接口没有fireTime参数
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 348
- PR merge metrics
- No merged PRs in 30d
Description
你的运行环境
- 插件版本: jcore-react-native:1.9.0,jpush-react-native:2.8.1
- react-native 版本:0.63.4
期望效果
本地通知,接口addLocalNotification只有参数
messageID: string;
title: string;
content: string;
extras: Extra;
那如何进行定时提醒呢,比如我想设定今天18:00通知我。
实际效果
目前根据addLocalNotification,则立刻显示通知了。
重现步骤
- JPush.addLocalNotification({
messageID: "123456789",
title: "测试标题",
content: "测试内容",
extras: {"key123": "value123"}
})
Debug logs
无
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the addLocalNotification entry point and checking how the stated plugin versions handle local notifications on Android and iOS. Determine the intended scheduling interface and verify that a notification configured for 18:00 is delayed rather than shown immediately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100