npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-native-idosdk-test

v1.0.29

Published

Getui ido sdk plugin for react-native

Downloads

48

Readme

react-native-idosdk

  • idosdk 是个推官方开发的 IDOSDK React Native 插件,使用该插件可以方便快速地集成推送功能。

环境

  1. React Native Version "react": "18.3.1" "react-native": "0.75.4"
  2. 当前react-native-idosdk版本 1.0.2

1.安装

1.1 使用 npm 自动安装

在您的项目根目录下执行

step1:添加npm包依赖
 npm install react-native-idosdk@latest --save 


step2:iOS, pod项目, 链接iOS原生代码
npx pod-install


step2: 链接 (非Autolinking项目, 和iOS非pod项目)
react-native link

1.2 完整代码示例

*AndroidDemo *iOSDemo

2. 配置

  • appId 需要去 个推官网 注册后,在后台配置获取。

2.1 Android

  • AndroidManifest.xml中添加配置
   <manifest>
    <application>
           <meta-data android:name="PUSH_APPID" android:value="你的appid"/>
           <meta-data android:name="GT_INSTALL_CHANNEL" android:value=""/>
      </application>
   </manifest>
  • 如果开启混淆
  -keep class com.getui.gs.** { *; }
  -keep class com.getui.gtc.** {*;}

2.2 IOS

2.2.2 使用CocoaPods安装

如果是原生应用集成react-native

如果你的 React Native 是通过 Cocoapods 来集成的则使用下面两个步骤来集成

  1. 在Podfile中添加如下代码(需要写在对应的 target 里):
pod 'IdoSdkRN', :path => '../node_modules/react-native-idosdk'
  1. 终端执行如下命令:
pod install

注意:

  • 使用 pod 就不要使用 react-native link 了,不然会有冲突。

  • 在 iOS 工程中如果找不到头文件可能要在 TARGETS-> BUILD SETTINGS -> Search Paths -> Header Search Paths 添加如下如路径

    $(SRCROOT)/../node_modules/react-native-getui/ios/RCTGetuiModule

2.4 API调用与订阅消息

查看示例

android 与 ios 有部分API不同, 查看插件的index.js 或 index.d.ts中API的注释

3.iOS注意事项