Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
oOtroyOo opened this issue Jan 7, 2019 · 2 comments
Open

Comments

@oOtroyOo
Copy link

oOtroyOo commented Jan 7, 2019

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

#define UNITY_USES_REMOTE_NOTIFICATIONS 0
更改为
#define UNITY_USES_REMOTE_NOTIFICATIONS 1

否则

didReceiveRemoteNotification
didRegisterForRemoteNotificationsWithDeviceToken
didReceiveRemoteNotification

都将无法使用

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

@weiruiyang
Copy link
Contributor

好的,谢谢支持。

@maggie03230
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants