jpush / jpush-react-native

JPush's officially supported React Native plugin (Android & iOS). 极光推送官方支持的 React Native 插件(Android & iOS)。
http://docs.jiguang.cn
MIT License
1.35k stars 338 forks source link

IOS - No IDFA version #810

Open enigmablue opened 4 years ago

enigmablue commented 4 years ago

Hi anyone know to do a non idfa version for this installation?

I think it needs some more customized pod install? I tried following

pod 'JCore', '2.1.4-noidfa' // 必选项 pod 'JPush', '3.2.4-noidfa' // 必选项

But the JPush pod is giving me errors

image

puuuudding commented 3 years ago

你需要先在项目根目录下添加react-native.config.js,阻止JCore(低版本还需要阻止JPush)在 iOS 下的 autolink,然后在 Podfile 中添加对应的 pod 配置

react-native.config.js

module.exports = {
  dependencies: {
    'jcore-react-native': {
      platforms: {
        ios: null,
      },
    },
  },
};

Podfile

...
pod 'JCore', '2.4.0-noidfa'
...