jpush-unity3d-plugin
jpush-unity3d-plugin copied to clipboard
导出工程有一个#define UNITY_USES_REMOTE_NOTIFICATIONS的坑
我的Unity版本2017 在导出Xcode项目之后,必须将 Preprocessor.h 文件中
#define UNITY_USES_REMOTE_NOTIFICATIONS 0
更改为
#define UNITY_USES_REMOTE_NOTIFICATIONS 1
否则
didReceiveRemoteNotification
didRegisterForRemoteNotificationsWithDeviceToken
didReceiveRemoteNotification
都将无法使用
请在说明文档中写明这个修改
好的,谢谢支持。
确实非常重要,查了好久,算是unity的坑。 解决方案:http://forum.unity3d.com/threads/regarding-unity_uses_remote_notifications-and-missing-callbacks-for-push-registration.429536/#post-2785700