Skip to content

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

@oOtroyOo

Description

@oOtroyOo

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

#define UNITY_USES_REMOTE_NOTIFICATIONS 0
更改为
#define UNITY_USES_REMOTE_NOTIFICATIONS 1

否则

didReceiveRemoteNotification
didRegisterForRemoteNotificationsWithDeviceToken
didReceiveRemoteNotification

都将无法使用

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions