🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

react-native-alive-push

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-alive-push

[react-native-alive-push-cli使用文档](./doc/cli.md)

latest
npmnpm
Version
0.1.3
Version published
Weekly downloads
20
150%
Maintainers
3
Weekly downloads
 
Created
Source

react-native-alive-push

react-native-alive-push-cli使用文档

npm version npm license npm download npm download

Getting started

$ npm install react-native-alive-push --save

alive-push安装好之后默认会进行link,如果link失败请手动link

Mostly automatic installation

$ react-native link react-native-alive-push

快速使用

import React,{Component} from "react"
import {AppRegistry} from "react-native"
import alivepush from "react-native-alive-push"

class App extends Component{
    ...
}

const AlivePushApp=alivepush({
    deployment:""
})(App)

AppRegistry.registerComponent('TestAlivePush', () => AlivePushApp);

集成

Android

需要重写getJSBundleFile方法

@Nullable
@Override
protected String getJSBundleFile() {
    return RNAlivePushModule.getJSBundleFile(MainApplication.this);
}

IOS

在AppDelegate.m中添加

#import "RNAlivePush.h"

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
    ...
    NSURL *jsCodeLocation = [RNAlivePush getJSBundleFile];
    ...
} 

Change

0.0.3 ~ 0.0.8

  • 更新包的目录结构调整.APPLICATION_DATA_DIR/INNER_VERSION调整为APPLICATION_DATA_DIR/VERSION_NAME/INNER_VERSION
  • 更新了android的package name并修改了android的部分bug
  • checkupdate的时候不使用缓存(url添加随机数)
  • 添加了debug模式
  • 修复了IOS安装的问题
  • 修改IOS奔溃问题

0.0.2

  • android/ios alivepush配置文件添加了versionName后缀
  • android支持asset-dest bundle
  • 修改了下载完成后feedback失败的bug
  • 修改了覆盖安装时访问老版本的bug
  • 优化了alive-push代码

交流群

Keywords

react-native

FAQs

Package last updated on 21 Dec 2018

Did you know?

Socket

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.

Install

Related posts