美文网首页
React Native jpush-react-native极

React Native jpush-react-native极

作者: Loki_ | 来源:发表于2022-11-22 14:20 被阅读0次

    问题描述:

    1、Android没问题

    2、iOS开发环境没问题

    3、iOS生产环境接收不到推送(苹果推送证书没问题)

    4、极光推送失败原因:Not get devicetoken,获取不到 devicetoken

    版本记录:

    "react-native":"0.66.4",

    "jcore-react-native":"^2.0.2",

    "jpush-react-native":"^2.9.1",

    问题原因:

    TARGETS-->Build Settings-->Code Signing Entitlements-->Release中是空的

    这个文件不知道为什么不存在

    Release中是空的

    问题解决:

    1、复制smarthqDebug.entitlements文件,重命名为smarthqRelease.entitlements,文件内容为下图

    smarthqRelease.entitlements文件内容

    2、在TARGETS-->Build Settings-->Code Signing Entitlements-->Release中配置

    这样就能接收到推送了

    参考:https://community.jiguang.cn/article/56461

    相关文章

      网友评论

          本文标题:React Native jpush-react-native极

          本文链接:https://www.haomeiwen.com/subject/fgiqirtx.html