{"action":"created","issue":{"url":"https://api.github.com/repos/jpush/jpush-unity3d-plugin/issues/30","repository_url":"https://api.github.com/repos/jpush/jpush-unity3d-plugin","labels_url":"https://api.github.com/repos/jpush/jpush-unity3d-plugin/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/jpush/jpush-unity3d-plugin/issues/30/comments","events_url":"https://api.github.com/repos/jpush/jpush-unity3d-plugin/issues/30/events","html_url":"https://github.com/jpush/jpush-unity3d-plugin/issues/30","id":370131170,"node_id":"MDU6SXNzdWUzNzAxMzExNzA=","number":30,"title":"setBroadcastTime超过某个阀值后，会立刻推送出来","user":{"login":"zhaoqingqing","id":3056814,"node_id":"MDQ6VXNlcjMwNTY4MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3056814?v=4","gravatar_id":"","url":"https://api.github.com/users/zhaoqingqing","html_url":"https://github.com/zhaoqingqing","followers_url":"https://api.github.com/users/zhaoqingqing/followers","following_url":"https://api.github.com/users/zhaoqingqing/following{/other_user}","gists_url":"https://api.github.com/users/zhaoqingqing/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaoqingqing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaoqingqing/subscriptions","organizations_url":"https://api.github.com/users/zhaoqingqing/orgs","repos_url":"https://api.github.com/users/zhaoqingqing/repos","events_url":"https://api.github.com/users/zhaoqingqing/events{/privacy}","received_events_url":"https://api.github.com/users/zhaoqingqing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-15T12:04:54Z","updated_at":"2018-10-30T01:57:35Z","closed_at":null,"author_association":"NONE","body":"你好，在安卓上调用这个接口 AddLocalNotification设置延时X秒后进行推送。\r\n\r\n如果设置30天(2592000秒)会立即推送出来，我测试当超过2200000秒后，就会立即把消息推送出来。\r\n\r\n\r\n\r\n我使用的是JPushUnityPlugin_v3.2.6.unitypackage\r\n\r\naar中包含的sdk版本为：\r\n\r\n```\r\njpush-android-3.1.5.jar\r\njcore-android-1.2.3.jar\r\n```\r\n\r\n\r\n\r\n我的代码\r\n\r\n```csharp\r\nJPushBinding.AddLocalNotification(0, \"推送内容\", \"标题\", 1, 2592000, \"\");\r\n```\r\n\r\n设置20天后推送adb日志\r\n\r\n```bash\r\n10-15 19:57:05.476: D/JIGUANG-JPush(9359): [JPushDataAction] Action - onActionRun\r\n10-15 19:57:05.476: D/JIGUANG-JPush(9359): [PushServiceCore] bundle:Bundle[{sdktype=JPUSH, action=org.qing.jpush.intent.MULTI_PROCESS, multi_type=6, local_notification=cn.jpush.android.data.JPushLocalNotification@1}]\r\n10-15 19:57:05.476: D/JIGUANG-JPush(9359): [PushServiceCore] Action - handleServiceAction - action:org.qing.jpush.intent.MULTI_PROCESS\r\n10-15 19:57:05.476: D/JIGUANG-JPush(9359): [JPushLocalNotificationCenter] add LocalNotification\r\n\r\n```\r\n\r\n设置30天后推送adb日志\r\n\r\n```bash\r\n10-15 19:59:17.508: D/JIGUANG-JPush(9359): [JPushDataAction] Action - onActionRun\r\n10-15 19:59:17.508: D/JIGUANG-JPush(9359): [PushServiceCore] bundle:Bundle[{sdktype=JPUSH, action=org.qing.jpush.intent.MULTI_PROCESS, multi_type=6, local_notification=cn.jpush.android.data.JPushLocalNotification@1}]\r\n10-15 19:59:17.508: D/JIGUANG-JPush(9359): [PushServiceCore] Action - handleServiceAction - action:org.qing.jpush.intent.MULTI_PROCESS\r\n10-15 19:59:17.508: D/JIGUANG-JPush(9359): [JPushLocalNotificationCenter] add LocalNotification\r\n10-15 19:59:17.584: D/JIGUANG-JCore(9359): [PushReceiver] onReceive - cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY\r\n10-15 19:59:17.588: D/JIGUANG-JPush(9359): [PushReceiverCore] onReceive - cn.jpush.android.intent.NOTIFICATION_RECEIVED_PROXY\r\n10-15 19:59:17.604: D/JIGUANG-JPush(9359): [NotificationHelper] running flag:false\r\n10-15 19:59:17.604: D/JIGUANG-JPush(9359): [NotificationHelper] notification intent component=ComponentInfo{org.qing.jpush/cn.jpush.android.service.PushReceiver}\r\n10-15 19:59:17.604: I/NotificationManagerService(502): send statusbar msg to player:jpush-unity3d-demo:推送内容\r\n10-15 19:59:17.612: D/dalvikvm(780): GC_CONCURRENT freed 1678K, 49% free 11005K/21272K, paused 2ms+0ms, total 7ms\r\n10-15 19:59:17.612: E/WVMExtractor(155): Failed to open libwvm.so\r\n10-15 19:59:17.620: D/JIGUANG-JPush(9359): [NotificationHelper] Send push received broadcast to developer defined receiver\r\n10-15 19:59:17.620: I/JPushReceiver(9359): GameObject: Canvas\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jpush/jpush-unity3d-plugin/issues/comments/434143890","html_url":"https://github.com/jpush/jpush-unity3d-plugin/issues/30#issuecomment-434143890","issue_url":"https://api.github.com/repos/jpush/jpush-unity3d-plugin/issues/30","id":434143890,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDE0Mzg5MA==","user":{"login":"zhaoqingqing","id":3056814,"node_id":"MDQ6VXNlcjMwNTY4MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3056814?v=4","gravatar_id":"","url":"https://api.github.com/users/zhaoqingqing","html_url":"https://github.com/zhaoqingqing","followers_url":"https://api.github.com/users/zhaoqingqing/followers","following_url":"https://api.github.com/users/zhaoqingqing/following{/other_user}","gists_url":"https://api.github.com/users/zhaoqingqing/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaoqingqing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaoqingqing/subscriptions","organizations_url":"https://api.github.com/users/zhaoqingqing/orgs","repos_url":"https://api.github.com/users/zhaoqingqing/repos","events_url":"https://api.github.com/users/zhaoqingqing/events{/privacy}","received_events_url":"https://api.github.com/users/zhaoqingqing/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T01:57:35Z","updated_at":"2018-10-30T01:57:35Z","author_association":"NONE","body":"AddLocalNotificationByDate 需要传入具体的日期，有的月份是30，31天(2月是28，29天)，需要计算出每个月的天数，稍微会麻烦些，所以使用AddLocalNotification接口。"}}
{"actor":{"display_login":"zhaoqingqing"}}