{"action":"created","issue":{"url":"https://api.github.com/repos/jpush/jpush-react-native/issues/512","repository_url":"https://api.github.com/repos/jpush/jpush-react-native","labels_url":"https://api.github.com/repos/jpush/jpush-react-native/issues/512/labels{/name}","comments_url":"https://api.github.com/repos/jpush/jpush-react-native/issues/512/comments","events_url":"https://api.github.com/repos/jpush/jpush-react-native/issues/512/events","html_url":"https://github.com/jpush/jpush-react-native/issues/512","id":332296003,"node_id":"MDU6SXNzdWUzMzIyOTYwMDM=","number":512,"title":"sendLocalNotification or setLocalNotification 没有显示通知","user":{"login":"ssqyht","id":9328988,"node_id":"MDQ6VXNlcjkzMjg5ODg=","avatar_url":"https://avatars1.githubusercontent.com/u/9328988?v=4","gravatar_id":"","url":"https://api.github.com/users/ssqyht","html_url":"https://github.com/ssqyht","followers_url":"https://api.github.com/users/ssqyht/followers","following_url":"https://api.github.com/users/ssqyht/following{/other_user}","gists_url":"https://api.github.com/users/ssqyht/gists{/gist_id}","starred_url":"https://api.github.com/users/ssqyht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssqyht/subscriptions","organizations_url":"https://api.github.com/users/ssqyht/orgs","repos_url":"https://api.github.com/users/ssqyht/repos","events_url":"https://api.github.com/users/ssqyht/events{/privacy}","received_events_url":"https://api.github.com/users/ssqyht/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-14T08:14:45Z","updated_at":"2018-06-22T02:15:39Z","closed_at":null,"author_association":"NONE","body":"你的运行环境\r\n\r\nMac Android模拟器\r\n\r\n插件版本: \"jcore-react-native\": \"^1.2.6\",\"jpush-react-native\": \"^2.2.5\",\r\nreact-native 版本：\"react-native\": \"0.55.4\",\r\n期望效果\r\n\r\n1.Android下调用JPushModule.sendLocalNotification(notification);能够显示提示通知\r\n2.IOS下面调用 JPushModule.sendLocalNotification(notification);能够显示提示通知\r\n\r\n实际效果\r\n\r\n1.Android没有反应，不显示通知\r\n2.IOS 没有反应，不显示通知\r\n\r\n重现步骤\r\nif (this.isAndroid()) {\r\n          \r\n            JPushModule.sendLocalNotification(notification);\r\n        } else {\r\n            JPushModule.setLocalNotification(\r\n                200,\r\n                notification.content,\r\n                99\r\n            );\r\n        }\r\n\r\nDebug logs\r\n\r\n包括 Android 或 iOS 的日志："},"comment":{"url":"https://api.github.com/repos/jpush/jpush-react-native/issues/comments/399299647","html_url":"https://github.com/jpush/jpush-react-native/issues/512#issuecomment-399299647","issue_url":"https://api.github.com/repos/jpush/jpush-react-native/issues/512","id":399299647,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTI5OTY0Nw==","user":{"login":"ssqyht","id":9328988,"node_id":"MDQ6VXNlcjkzMjg5ODg=","avatar_url":"https://avatars1.githubusercontent.com/u/9328988?v=4","gravatar_id":"","url":"https://api.github.com/users/ssqyht","html_url":"https://github.com/ssqyht","followers_url":"https://api.github.com/users/ssqyht/followers","following_url":"https://api.github.com/users/ssqyht/following{/other_user}","gists_url":"https://api.github.com/users/ssqyht/gists{/gist_id}","starred_url":"https://api.github.com/users/ssqyht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssqyht/subscriptions","organizations_url":"https://api.github.com/users/ssqyht/orgs","repos_url":"https://api.github.com/users/ssqyht/repos","events_url":"https://api.github.com/users/ssqyht/events{/privacy}","received_events_url":"https://api.github.com/users/ssqyht/received_events","type":"User","site_admin":false},"created_at":"2018-06-22T02:15:39Z","updated_at":"2018-06-22T02:15:39Z","author_association":"NONE","body":"@JoshLipan 你们源码没有标注：而且调用initPush 一会自动切换为setupPush\r\n\r\n\r\nexport default class JPush {\r\n  /**\r\n   * 初始化JPush 必须先初始化才能执行其他操作\r\n   */\r\n  static initPush () {\r\n    if (Platform.OS == \"android\") {\r\n      JPushModule.initPush()\r\n    } else {\r\n      JPush.setupPush()\r\n    }\r\n  }\r\n  /**\r\n   * 停止推送，调用该方法后将不再受到推送\r\n   */\r\n  static stopPush () {\r\n    JPushModule.stopPush()\r\n  }\r\n\r\n  /**\r\n   * 恢复推送功能，停止推送后，可调用该方法重新获得推送能力\r\n   */\r\n  static resumePush () {\r\n    if (Platform.OS == \"android\") {\r\n      JPushModule.resumePush()\r\n    } else {\r\n      JPush.setupPush()\r\n    }\r\n  }\r\n\r\n调用 setupPush没有用，我换成调用setupPush\r\n\r\n接着IOS我手动配置过一遍以后，现在报错如下：\r\n![image](https://user-images.githubusercontent.com/9328988/41754220-2383b512-7604-11e8-8f81-5065dd98a60d.png)\r\n\r\n很奇怪"}}
{"actor":{"display_login":"ssqyht"}}