jpush-unity3d-plugin icon indicating copy to clipboard operation
jpush-unity3d-plugin copied to clipboard

导出工程有一个#define UNITY_USES_REMOTE_NOTIFICATIONS的坑

Open oOtroyOo opened this issue 7 years ago • 2 comments

我的Unity版本2017 在导出Xcode项目之后,必须将 Preprocessor.h 文件中

#define UNITY_USES_REMOTE_NOTIFICATIONS 0 更改为 #define UNITY_USES_REMOTE_NOTIFICATIONS 1

否则

didReceiveRemoteNotification didRegisterForRemoteNotificationsWithDeviceToken didReceiveRemoteNotification

都将无法使用

请在说明文档中写明这个修改

oOtroyOo avatar Jan 07 '19 10:01 oOtroyOo

好的,谢谢支持。

weiruiyang avatar Jul 25 '19 06:07 weiruiyang

确实非常重要,查了好久,算是unity的坑。 解决方案:http://forum.unity3d.com/threads/regarding-unity_uses_remote_notifications-and-missing-callbacks-for-push-registration.429536/#post-2785700

maggie03230 avatar Nov 07 '19 03:11 maggie03230