
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
react-native-umsdk
Advanced tools
$ npm install react-native-umsdk --save
cd ios
pod install
1.先预初始化,在MainApplication.java 的onCreate 中调用 RNUmsdkModule.preInitUMSDK
2.正式的初始化需要在用户同意过用户隐私协议之后才能调用UMSdk.js initUMSDK
ios暂时没有隐私相关问题,无需预初始化。
1.可以在appDelegate didFinishLaunchingWithOptions方法汇中调用 [ReactBridgeManager initUMSD];
2.或者可以在js端使用 UMSdk.js initUMSDK
initUMSD中配置share相关的参数shareToPlatform直接发起分享需要配置xcode,打开推送开关Capabilities -> capability+ 添加 推送开关Push Notifiications和 后台推送权限Background Modes - Remote notifiications
保存devicetoken
ios
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(nonnull NSData *)deviceToken{
[RNUMPush saveDeviaceToken:deviceToken];
}
获取devicetoken
RNUMPush.getDeviceToken(()=>{})
默认不打开前台系统弹窗setAutoAlert,需要自己创建提示框
使用
deviceToken,并上传服务端,userNotificationCenter方法可以注册推送,并监听推送消息FAQs
## Getting started
We found that react-native-umsdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.