jpush-react-native icon indicating copy to clipboard operation
jpush-react-native copied to clipboard

缺少kotlin版本的demo

Open inkCrazy opened this issue 1 year ago • 1 comments

"jcore-react-native": "^2.1.6",
"jpush-react-native": "^3.0.6",
"react": "18.2.0",
"react-native": "0.73.6",

MainActivity.kt里面先不要调用jCoreModule.setAuth(false)不知道怎么写了

inkCrazy avatar Apr 15 '24 08:04 inkCrazy

import com.facebook.react.bridge.ReactContext import com.facebook.react.bridge.ReactApplicationContext import cn.jiguang.plugins.core.JCoreModule

override fun onCreate(savedInstanceState: Bundle?) { val reactContext = getReactNativeHost().getReactInstanceManager().getCurrentReactContext() as ReactApplicationContext?; val jCoreModule = JCoreModule(reactContext); //先不要授权极光推送 jCoreModule.setAuth(false); super.onCreate(null) }

inkCrazy avatar Apr 15 '24 08:04 inkCrazy