Hey guys i am trying to upload my react-native apk to redmi note 3 but encountered an error unable to upload some apk after downgrading the gradle from 1.3.1 to 1.2.3 i was able to sought it but still after successfully uploading the app i can only see blank white screen. I am unable to see any app screen I followed https://github.com/facebook/react-native/issues/2720 but still didn't found any success. I have worked on two version of redmi phone one is redmi note 3 with 5.0.2 android version and Mi pad with 4.4.4 android version and faced the same issue on both i.e blank screen. Thanks in advance.
Unable to run react-native apps on Redmi phone?
programmatically retrieve Header component height - React Native
Using NativeBase, I added a Header component. Now, I want to programmatically retrieve the height of the header. How can I do this. The code for adding the Header is given below:
I tried using Dimensions.get('window')
but it gives me the height of the entire view.
The code:
import React, {Component} from 'react-native';
import {Container, Header, Button, Title, Icon} from 'native-base';
export default class ThemeHeaderExample extends Component {
render() {
return (
<Header>
<Button transparent />
<Title>Header</Title>
</Header>
);
}
}
Event from event.nativeEvent.data logs as setImmediate$0.4162155499933975$1
I am trying to pass token and other user details from React Web application to React Native application with Webview (react-native).
When I do
window.postMessage(JSON.stringify(reactNativeObj), '*');
and log the event in React native application with
console.log( "On Message", event.nativeEvent.data );
It is printing the log as
On Message: setImmediate$0.4162155499933975$1
It should print my object instead.
I have tried almost everything and re-read the document https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage but couldn't make it work.
Any help would be appreciated.
React-native android app with tensorflow.js [closed]
How can I build an android app with react-native which does some image classification using Tensorflow.js?
React-native-tab-view: On tapping on tabs transition is very slow but on swipe it is very smooth
I am using react-native-tab-view for the tabs but when I am clicking on tabs transition is very slow. And on swipe it is smooth and fast. What I did to resolve it:- I make all sub component a PureComponent which is being rendered on index change. That means it will not re-render if content is not different from previous. And I crossed checked if components is being re-rendered or not and components are not re-rendering. But still it lagging or slow transition if click on tabs(not on swipe)
react-native run-android Exception in thread "main" java.util.zip.ZipException: error in opening zip file
I try to
react-native run-android
and meet this problem
JS server already running.
Running C:\Users\丶丶困困兽兽犹犹斗斗\AppData\Local\Android\sdk/platform-tools/adb -s 192.168.76.101:5555 reverse tcp:8081 tcp:8081
Building and installing the app on the device (cd android && gradlew.bat installDebug...
Unzipping C:\Users\丶丶困困兽兽犹犹斗斗\.gradle\wrapper\dists\gradle-2.4-all\6r4uqcc6ovnq6ac6s0txzcpc0\gradle-2.4-all.zip to C:\Users\丶丶困困兽兽犹犹斗斗\.gradle\wrapper\dists\gradle-2.4-all\6r4uqcc6ovnq6ac6s0txzcpc0Exception in thread "main" java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.zip.ZipFile.<init>(ZipFile.java:131)
at org.gradle.wrapper.Install.unzip(Install.java:159)
at org.gradle.wrapper.Install.access$500(Install.java:26)
at org.gradle.wrapper.Install$1.call(Install.java:69)
at org.gradle.wrapper.Install$1.call(Install.java:46)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:46)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
SDK works well and can find device in adb devices
AAPT: error: unexpected element found in
I am trying to use adaptive icon in react native android but it product following error.
AAPT: error: unexpected element found in
here is my manifes.xml
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.anar">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.VIBRATE" />
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme">
<activity android:screenOrientation="portrait" android:launchMode="singleTop" android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
<meta-data android:name="com.google.android.geo.API_KEY" android:value="MY_API_KEY_IS_HIDDEN"/>
<service android:name="io.invertase.firebase.messaging.RNFirebaseMessagingService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service android:name="io.invertase.firebase.messaging.RNFirebaseBackgroundMessagingService" />
</application>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background" />
<foreground android:drawable="@mipmap/ic_launcher_foreground" /> </adaptive-icon>
</manifest>
How to count the notifications coming on the app in react-native
My requirement is very simple. I have configured react-native-firebase properly. I am getting notification as required. But my requirement is, I have bell icon in my app I want to count all the notifications coming (can be in foreground, can be in background or can be when app is killed) I want to show that count on the bell icon. When user will click on icon I will then make it to null. Now I want to know how I can achieve as above. Please help me out, any help will be appreciated. Thanks in advance.
Cannot resolve method 'getJSModule' in Android
I am using this method in android but it's displaying this error "context.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit("Heartbeat",null);"
I am importing import com.facebook.react.modules.core.DeviceEventManagerModule;
but still the problem remains.
Any idea why it displays that? Couldn't find anything on the internet.
Context context = getApplicationContext();
context.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit("Heartbeat",null);
error when running the 'React-Native Run-android '
- Get more help at https://help.gradle.org
BUILD FAILED in 9s
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':app'.
SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at 'F:\projetob\android\local.properties'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 9s
at checkExecSyncError (child_process.js:629:11)
at execFileSync (child_process.js:647:13)
at runOnAllDevices (F:\projetob\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at process._tickCallback (internal/process/next_tick.js:68:7)
React native 0.61.5 Crashlytics missing libhermes.so: SoLoader.java com.facebook.soloader.SoLoader.assertInitialized
I am building a React-Native application, everything worked fine until I decided to upgrade from version 0.59.x to v 0.61.5.
When I try to release my app in the play store, I've got a lot of crashes reported by Firebase Crashlytics (v 6.2.0) -- even though my version is just available for internal testing -- and it's exactly the same error for the exact same device =>LGE Nexus 5X with android 6.0.1.
Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so
at com.facebook.soloader.SoLoader.assertInitialized(SoLoader.java)
at com.facebook.soloader.SoLoader.assertInitialized(SoLoader.java)
at com.facebook.soloader.SoLoader.assertInitialized(SoLoader.java)
at com.facebook.soloader.SoLoader.assertInitialized(SoLoader.java)
at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java)
at com.facebook.hermes.reactexecutor.HermesExecutorFactory.create(HermesExecutorFactory.java)
at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java)
at java.lang.Thread.run(Thread.java:818)
To solved this problem, I tried to submit multiple version with slightly different android configuration (for instance with and without hermes enable) but it doesn't change the end result.
Here is my build.gradle file :
apply plugin: "com.android.application"
apply plugin: "io.fabric"
import com.android.build.OutputFile
/**
* The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
* and bundleReleaseJsAndAssets).
* These basically call `react-native bundle` with the correct arguments during the Android build
* cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
* bundle directly from the development server. Below you can see all the possible configurations
* and their defaults. If you decide to add a configuration block, make sure to add it before the
* `apply from: "../../node_modules/react-native/react.gradle"` line.
*
* project.ext.react = [
* // the name of the generated asset file containing your JS bundle
* bundleAssetName: "index.android.bundle",
*
* // the entry file for bundle generation
* entryFile: "index.android.js",
*
* // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format
* bundleCommand: "ram-bundle",
*
* // whether to bundle JS and assets in debug mode
* bundleInDebug: false,
*
* // whether to bundle JS and assets in release mode
* bundleInRelease: true,
*
* // whether to bundle JS and assets in another build variant (if configured).
* // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
* // The configuration property can be in the following formats
* // 'bundleIn${productFlavor}${buildType}'
* // 'bundleIn${buildType}'
* // bundleInFreeDebug: true,
* // bundleInPaidRelease: true,
* // bundleInBeta: true,
*
* // whether to disable dev mode in custom build variants (by default only disabled in release)
* // for example: to disable dev mode in the staging build type (if configured)
* devDisabledInStaging: true,
* // The configuration property can be in the following formats
* // 'devDisabledIn${productFlavor}${buildType}'
* // 'devDisabledIn${buildType}'
*
* // the root of your project, i.e. where "package.json" lives
* root: "../../",
*
* // where to put the JS bundle asset in debug mode
* jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
*
* // where to put the JS bundle asset in release mode
* jsBundleDirRelease: "$buildDir/intermediates/assets/release",
*
* // where to put drawable resources / React Native assets, e.g. the ones you use via
* // require('./image.png')), in debug mode
* resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
*
* // where to put drawable resources / React Native assets, e.g. the ones you use via
* // require('./image.png')), in release mode
* resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
*
* // by default the gradle tasks are skipped if none of the JS files or assets change; this means
* // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
* // date; if you have any other folders that you want to ignore for performance reasons (gradle
* // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
* // for example, you might want to remove it from here.
* inputExcludes: ["android/**", "ios/**"],
*
* // override which node gets called and with what additional arguments
* nodeExecutableAndArgs: ["node"],
*
* // supply additional arguments to the packager
* extraPackagerArgs: []
* ]
*/
project.ext.react = [
entryFile: "index.js",
enableHermes: false, // clean and rebuild if changing
]
apply from: "../../node_modules/react-native/react.gradle"
/**
* Set this to true to create two separate APKs instead of one:
* - An APK that only works on ARM devices
* - An APK that only works on x86 devices
* The advantage is the size of the APK is reduced by about 4MB.
* Upload all the APKs to the Play Store and people will download
* the correct one based on the CPU architecture of their device.
*/
def enableSeparateBuildPerCPUArchitecture = false
/**
* Run Proguard to shrink the Java bytecode in release builds.
*/
def enableProguardInReleaseBuilds = true
/**
* The preferred build flavor of JavaScriptCore.
*
* For example, to use the international variant, you can use:
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
*
* The international variant includes ICU i18n library and necessary data
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
* give correct results when using with locales other than en-US. Note that
* this variant is about 6MiB larger per architecture than default.
*/
def jscFlavor = 'org.webkit:android-jsc:+'
/**
* Whether to enable the Hermes VM.
*
* This should be set on project.ext.react and mirrored here. If it is not set
* on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
* and the benefits of using Hermes will therefore be sharply reduced.
*/
def enableHermes = project.ext.react.get("enableHermes", false);
def _applicationId = System.getenv("GRADLE_APP_IDENTIFIER") ?: 'com.clothparency.debug'
def appName = System.getenv("GRADLE_APP_NAME") ?: 'Clear Fashion debug'
def _versionCode = (System.getenv("ANDROID_VERSION_CODE") ?: "1") as Integer
def _versionName = System.getenv("ANDROID_VERSION_NAME") ?: "1.0.0"
android {
compileSdkVersion rootProject.ext.compileSdkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'META-INF/androidx.exifinterface_exifinterface.version'
}
defaultConfig {
applicationId _applicationId
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode _versionCode
versionName _versionName
missingDimensionStrategy 'react-native-camera', 'mlkit'
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
}
}
signingConfigs {
release {
storeFile file(String.valueOf(System.getenv("GRADLE_KEYSTORE")))
storePassword System.getenv("GRADLE_KEYSTORE_PASSWORD")
keyAlias System.getenv("GRADLE_KEYSTORE_ALIAS")
keyPassword System.getenv("GRADLE_KEYSTORE_ALIAS_PASSWORD")
}
}
buildTypes {
debug {
resValue "string", "app_name", appName
debuggable true
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
release {
resValue "string", "app_name", appName
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// https://developer.android.com/studio/build/configure-apk-splits.html
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
}
configurations.all {
resolutionStrategy {
force "com.facebook.soloader:soloader:0.8.1"
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:+" // From node_modules
if (enableHermes) {
def hermesPath = "../../node_modules/hermes-engine/android/";
debugImplementation files(hermesPath + "hermes-debug.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")
} else {
implementation jscFlavor
}
implementation 'com.android.support:multidex:1.0.3'
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
apply plugin: 'com.google.gms.google-services'
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
Also, my root build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
}
repositories {
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath('com.android.tools.build:gradle:3.5.3')
classpath 'com.google.gms:google-services:4.2.0'
classpath 'io.fabric.tools:gradle:1.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
Here is dependencies of my package.json:
"dependencies": {
"@react-native-community/async-storage": "^1.6.1",
"@react-native-firebase/analytics": "^6.2.0",
"@react-native-firebase/app": "^6.2.0",
"@react-native-firebase/auth": "^6.2.0",
"@react-native-firebase/crashlytics": "^6.2.0",
"@react-native-firebase/perf": "^6.2.0",
"axios": "^0.18.0",
"fast-levenshtein": "^2.0.6",
"formik": "^1.5.7",
"i18n-js": "^3.2.2",
"jetifier": "^1.6.5",
"lodash": "^4.17.11",
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-camera": "^3.13.1",
"react-native-dialog": "^5.6.0",
"react-native-fbsdk": "^1.1.1",
"react-native-formik": "^1.7.5",
"react-native-gesture-handler": "^1.5.2",
"react-native-localize": "^1.1.2",
"react-native-reanimated": "^1.4.0",
"react-native-screens": "^1.0.0-alpha.23",
"react-native-swiper": "^1.6.0-rc.3",
"react-native-tab-view": "^2.11.0",
"react-navigation": "3.13.0",
"react-navigation-tabs": "^2.6.2",
"react-persist": "^1.0.2",
"react-redux": "^7.0.3",
"redux": "^4.0.1",
"redux-devtools-extension": "^2.13.8",
"redux-persist": "^6.0.0",
"redux-thunk": "^2.3.0",
"reselect": "^4.0.0",
"unorm": "^1.6.0",
"yup": "^0.27.0"
}
I found this github error talking about this topic https://github.com/facebook/react-native/issues/25923 But no solutions described here were worked for me.
Also found this thread on stackoverflow: React-Native :java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so : the error seems to be slightly different from mine, but solutions didn't work.
I'm afraid to release my new version into production and I'm totally stuck. Need fast help :)
App crashes after upgrading expo from 35 to 36
I updated my expo SDK from 35 to 36. Android build does not work on android x versions. The application gives error after splash screen. "Application keeps stopping". and no error.
While I am on the development mode my expo app works fine but once I build it crashes. I am also using sentry for capturing my errors but it seems my app is not loading so sentry can send me error logs.
02-04 23:32:34.473 32154 32154 E camy.com.aait: Not starting debugger since process cannot load the jdwp agent.
02-04 23:32:35.756 32154 32180 E Fabric : Failed to retrieve settings from https://settings.crashlytics.com/spi/v2/platforms/android/apps/camy.com.aait/settings
02-04 23:32:35.765 32154 32189 E Answers : Failed to retrieve settings
02-04 23:32:36.072 4149 5495 E BtGatt.ContextMap: remove() - removed: 7
02-04 23:32:36.092 4149 4665 E BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_STOP, appName: com.google.uid.shared, scannerId: 7, reportDelayMillis=0
02-04 23:32:39.347 5494 5494 E ProActiveLaunch: Sending Broadcast
02-04 23:32:39.354 3832 4114 E ActivityManager: TouchDown intent received, starting ActiveLaunch
02-04 23:32:39.857 3473 3582 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
02-04 23:32:39.961 3314 3335 E BufferQueueProducer: [com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity[5494]#0] disconnect: not connected (req=1)
02-04 23:32:39.971 3832 4143 E WindowManager: win=Window{f91f326 u0 com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.WindowManagerService.tryStartExitingAnimation:2752 com.android.server.wm.WindowManagerService.relayoutWindow:2450 com.android.server.wm.Session.relayoutForTranslate:302 android.view.IWindowSession$Stub.onTransact:518 com.android.server.wm.Session.onTransact:186 android.os.Binder.execTransact:739 <bottom of call stack>
02-04 23:32:39.990 3832 3928 E WindowManager: win=Window{88aa5e9 u0 Splash Screen camy.com.aait EXITING} destroySurfaces: appStopped=false win.mWindowRemovalAllowed=true win.mRemoveOnExit=true win.mViewVisibility=0 caller=com.android.server.wm.AppWindowToken.destroySurfaces:870 com.android.server.wm.AppWindowToken.destroySurfaces:851 com.android.server.wm.WindowState.onExitAnimationDone:5406 com.android.server.wm.WindowStateAnimator.onAnimationFinished:319 com.android.server.wm.WindowState.onAnimationFinished:5828 com.android.server.wm.-$$Lambda$yVRF8YoeNdTa8GR1wDStVsHu8xM.run:2 com.android.server.wm.SurfaceAnimator.lambda$getFinishedCallback$0:97
02-04 23:32:40.124 32154 32154 E c : java.lang.RuntimeException: A TaskDescription's primary color should be opaque
02-04 23:32:40.757 32154 32248 E ReactNativeJS: TypeError: undefined is not an object (evaluating '(0,l(r(d[16])).default)().apiUrl')
02-04 23:32:40.759 32154 32248 E ReactNativeJS: Invariant Violation: "main" has not been registered. This can happen if:
02-04 23:32:40.759 32154 32248 E ReactNativeJS: * Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
02-04 23:32:40.759 32154 32248 E ReactNativeJS: * A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.
02-04 23:32:40.765 32154 32154 E AndroidRuntime: FATAL EXCEPTION: main
02-04 23:32:40.765 32154 32154 E AndroidRuntime: Process: camy.com.aait, PID: 32154
02-04 23:32:40.765 32154 32154 E AndroidRuntime: java.lang.RuntimeException: Expo encountered a fatal error: TypeError: undefined is not an object (evaluating '(0,l(r(d[16])).default)().apiUrl'), stack:
02-04 23:32:40.765 32154 32154 E AndroidRuntime: <unknown>@844:329
02-04 23:32:40.765 32154 32154 E AndroidRuntime: v@2:1474
02-04 23:32:40.765 32154 32154 E AndroidRuntime: <unknown>@685:240
02-04 23:32:40.765 32154 32154 E AndroidRuntime: v@2:1474
02-04 23:32:40.765 32154 32154 E AndroidRuntime: <unknown>@684:137
02-04 23:32:40.765 32154 32154 E AndroidRuntime: v@2:1474
02-04 23:32:40.765 32154 32154 E AndroidRuntime: <unknown>@659:251
02-04 23:32:40.765 32154 32154 E AndroidRuntime: v@2:1474
02-04 23:32:40.765 32154 32154 E AndroidRuntime: <unknown>@6:82
02-04 23:32:40.765 32154 32154 E AndroidRuntime: v@2:1474
02-04 23:32:40.765 32154 32154 E AndroidRuntime: d@2:876
02-04 23:32:40.765 32154 32154 E AndroidRuntime: global code@1453:4
02-04 23:32:40.765 32154 32154 E AndroidRuntime:
02-04 23:32:40.765 32154 32154 E AndroidRuntime: at host.exp.exponent.experience.a$b.run(BaseExperienceActivity.java:7)
02-04 23:32:40.765 32154 32154 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)
02-04 23:32:40.765 32154 32154 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
02-04 23:32:40.765 32154 32154 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
02-04 23:32:40.765 32154 32154 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7050)
02-04 23:32:40.765 32154 32154 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-04 23:32:40.765 32154 32154 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
02-04 23:32:40.765 32154 32154 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
02-04 23:32:40.934 32278 32278 E Zygote : isWhitelistProcess - Process is Whitelisted
02-04 23:32:40.937 32278 32278 E Zygote : accessInfo : 1
02-04 23:32:40.945 32278 32278 E oid.sm.provide: Not starting debugger since process cannot load the jdwp agent.
02-04 23:32:41.019 3422 3422 E audit : type=1400 audit(1580830361.017:36741): avc: denied { write } for pid=32278 comm="oid.sm.provider" name="com.samsung.android.lool-WIDCUtGRZgs05T4sJGE9HQ==" dev="dm-1" ino=657597 scontext=u:r:system_app:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 SEPF_SM-G950F_9_0013 audit_filtered
02-04 23:32:41.019 3422 3422 E audit : type=1300 audit(1580830361.017:36741): arch=c00000b7 syscall=48 success=no exit=-13 a0=ffffff9c a1=770edff780 a2=2 a3=0 items=0 ppid=3450 pid=32278 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="oid.sm.provider" exe="/system/bin/app_process64" subj=u:r:system_app:s0 key=(null)
02-04 23:32:41.019 3422 3422 E audit : type=1327 audit(1580830361.017:36741): proctitle="com.samsung.android.sm.provider"
02-04 23:32:41.020 3422 3422 E audit : type=1400 audit(1580830361.017:36742): avc: denied { write } for pid=32278 comm="oid.sm.provider" name="com.samsung.android.lool-WIDCUtGRZgs05T4sJGE9HQ==" dev="dm-1" ino=657597 scontext=u:r:system_app:s0 tcontext=u:object_r:apk_data_file:s0 tclass=dir permissive=0 SEPF_SM-G950F_9_0013 audit_filtered
02-04 23:32:41.020 3422 3422 E audit : type=1300 audit(1580830361.017:36742): arch=c00000b7 syscall=56 success=no exit=-13 a0=ffffff9c a1=770ec230a0 a2=42 a3=1a4 items=0 ppid=3450 pid=32278 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=4294967295 comm="oid.sm.provider" exe="/system/bin/app_process64" subj=u:r:system_app:s0 key=(null)
02-04 23:32:41.020 3422 3422 E audit : type=1327 audit(1580830361.017:36742): proctitle="com.samsung.android.sm.provider"
02-04 23:32:41.369 3314 3335 E Layer : $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
02-04 23:32:41.369 3314 3335 E Layer : Abnormal Layer [Screenshot Parent]
02-04 23:32:41.369 29931 32270 E FasUtils: pkg=null userId=0 has no information
02-04 23:32:41.390 29931 32270 E FasUtils: pkg=null userId=0 has no information
02-04 23:32:41.390 3314 3335 E Layer : $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
02-04 23:32:41.390 3314 3335 E Layer : Abnormal Layer [Screenshot Parent]
02-04 23:32:41.392 29931 32270 E FasUtils: pkg=null userId=0 has no information
02-04 23:32:41.407 30730 30766 E PBSessionCacheImpl: sessionId[135153550075097661] not persisted.
02-04 23:32:41.615 29931 32270 E FasUtils: pkg=null userId=0 has no information
02-04 23:32:41.628 29931 32270 E FasUtils: pkg=null userId=0 has no information
02-04 23:32:41.795 29931 32270 E FasUtils: pkg=null userId=0 has no information
02-04 23:32:41.805 29931 32270 E FasUtils: pkg=null userId=0 has no information
02-04 23:32:42.142 3832 4338 E Watchdog: !@Sync 10233 [2020-02-04 23:32:42.142] FD count : 604
02-04 23:32:42.188 29931 32270 E FasUtils: pkg=null userId=0 has no information
02-04 23:32:42.190 29931 32270 E FasUtils: pkg=null userId=0 has no information
02-04 23:32:43.688 3832 4143 E BartenderActivityManager: BarTender: pid : 31441 cached=true abnormal=false kill=false stay=false release=false
02-04 23:32:44.876 3314 3334 E BufferQueueProducer: [Application Error: camy.com.aait#0] disconnect: not connected (req=1)
02-04 23:32:44.879 3832 4477 E KioskModeService: There's no matched data
02-04 23:32:44.936 3832 3857 E ViewRootImpl: sendUserActionEvent() returned.
02-04 23:32:46.684 4149 4665 E BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_START, appName: com.google.uid.shared, scannerId: 7, reportDelayMillis=0
02-04 23:32:47.433 3832 5448 E BartenderActivityManager: BarTender: pid : 32030 cached=true abnormal=false kill=false stay=false release=false
02-04 23:32:48.202 4149 5495 E BtGatt.ContextMap: remove() - removed: 7
02-04 23:32:48.216 4149 4665 E BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_STOP, appName: com.google.uid.shared, scannerId: 7, reportDelayMillis=0
02-04 23:33:00.085 3832 5448 E BartenderActivityManager: BarTender: pid : 18375 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:00.093 3832 5448 E BartenderActivityManager: BarTender: pid : 27951 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:00.097 3832 5448 E BartenderActivityManager: BarTender: pid : 28006 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:00.106 3832 5448 E BartenderActivityManager: BarTender: pid : 28027 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:00.113 3832 5448 E BartenderActivityManager: BarTender: pid : 30019 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:00.120 3832 5448 E BartenderActivityManager: BarTender: pid : 30659 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:03.265 4149 4665 E BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_START, appName: com.google.uid.shared, scannerId: 7, reportDelayMillis=0
02-04 23:33:04.769 4149 5495 E BtGatt.ContextMap: remove() - removed: 7
02-04 23:33:04.790 4149 4665 E BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_STOP, appName: com.google.uid.shared, scannerId: 7, reportDelayMillis=0
02-04 23:33:05.810 3832 5448 E BartenderActivityManager: BarTender: pid : 27590 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:12.159 3832 4338 E Watchdog: !@Sync 10234 [2020-02-04 23:33:12.158] FD count : 590
02-04 23:33:14.964 1822 1822 E KeyguardFingerPrint: updateFingerprintListeningState#mFingerprintRunningState=0 shouldListenForFingerprint=true
02-04 23:33:14.973 1822 1822 E KeyguardFingerPrint: startListeningForFingerprint() 327
02-04 23:33:15.258 3296 3296 E Sensors : inject_scontext_data: New ssp_data_injection_fd(31)
02-04 23:33:15.276 3314 6156 E BufferQueueProducer: [ColorFade#0] disconnect: not connected (req=1)
02-04 23:33:15.351 3296 3296 E Sensors : inject_scontext_data: New ssp_data_injection_fd(31)
02-04 23:33:15.353 3296 3296 E Sensors : inject_scontext_data: New ssp_data_injection_fd(31)
02-04 23:33:15.357 3296 3296 E Sensors : inject_scontext_data: New ssp_data_injection_fd(31)
02-04 23:33:15.361 3832 4575 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
02-04 23:33:15.503 3832 4143 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
02-04 23:33:15.517 3314 3996 E BufferQueueProducer: [com.samsung.android.app.cocktailbarservice/com.samsung.android.app.cocktailbarservice.CocktailBarService[9424]#0] disconnect: not connected (req=1)
02-04 23:33:15.521 1822 1822 E KeyguardFingerPrint: updateFingerprintListeningState#mFingerprintRunningState=1 shouldListenForFingerprint=true
02-04 23:33:15.524 3832 4143 E WindowManager: win=Window{fe4981f u0 com.samsung.android.app.cocktailbarservice/com.samsung.android.app.cocktailbarservice.CocktailBarService} destroySurfaces: appStopped=true win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.WindowManagerService.tryStartExitingAnimation:2752 com.android.server.wm.WindowManagerService.relayoutWindow:2450 com.android.server.wm.Session.relayoutForTranslate:302 android.view.IWindowSession$Stub.onTransact:518 com.android.server.wm.Session.onTransact:186 android.os.Binder.execTransact:739 <bottom of call stack>
02-04 23:33:15.539 3832 4143 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
02-04 23:33:15.543 3832 4143 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
02-04 23:33:15.637 1822 1822 E AbsSettings: refreshInner: refreshedSettingsDBItem key aod_rotation_value val = 5
02-04 23:33:15.657 1822 1822 E AOD_CONFIG@AODConfigurationController: Skipping initialize MONITOR_BATTERY - no registered monitor
02-04 23:33:15.692 3832 3832 E PocketModeEvent: ACTION_SCREEN_OFF
02-04 23:33:15.713 3832 4075 E TZ: client_server_communication: comm_request(0x76d417bf80) pImpl->serverName : CCM
02-04 23:33:15.713 3832 4075 E TZ: client_server_communication: comm_request(0x76d417bf80) <IClientServer>pImpl->sconn : 0x76d30b7e40
02-04 23:33:15.713 3832 4075 E TZ: client_server_communication: comm_request(0x76d417bf80) <IClientServer>pImpl->sconn->getInterfaceDescriptor() : CCM
02-04 23:33:15.716 3832 4075 E TZ: client_server_communication: comm_request(0x76d417bf80) pImpl->serverName : CCM
02-04 23:33:15.716 3832 4075 E TZ: client_server_communication: comm_request(0x76d417bf80) <IClientServer>pImpl->sconn : 0x76d30b7e40
02-04 23:33:15.716 3832 4075 E TZ: client_server_communication: comm_request(0x76d417bf80) <IClientServer>pImpl->sconn->getInterfaceDescriptor() : CCM
02-04 23:33:15.719 3832 4075 E TZ: client_server_communication: comm_request(0x76d417bf80) pImpl->serverName : CCM
02-04 23:33:15.719 3832 4075 E TZ: client_server_communication: comm_request(0x76d417bf80) <IClientServer>pImpl->sconn : 0x76d30b7e40
02-04 23:33:15.719 3832 4075 E TZ: client_server_communication: comm_request(0x76d417bf80) <IClientServer>pImpl->sconn->getInterfaceDescriptor() : CCM
02-04 23:33:15.719 3314 6156 E BufferQueueProducer: [StatusBar[1822]#0] disconnect: not connected (req=1)
02-04 23:33:15.721 3832 4075 E TZ: client_server_communication: comm_request(0x76d417bf80) pImpl->serverName : CCM
02-04 23:33:15.721 3832 4075 E TZ: client_server_communication: comm_request(0x76d417bf80) <IClientServer>pImpl->sconn : 0x76d30b7e40
02-04 23:33:15.721 3832 4075 E TZ: client_server_communication: comm_request(0x76d417bf80) <IClientServer>pImpl->sconn->getInterfaceDescriptor() : CCM
02-04 23:33:15.744 3301 3301 E SecHAL : nfc_hal_write: [Cmd]Send EVT data_sending_flag = true, return size=4!!
02-04 23:33:15.772 3301 6132 E SecHAL : nfc_data_callback: [Cmd]Received a response packet : data_sending_flag = false!!
02-04 23:33:15.773 4501 6081 E libnfc_nci: [ERROR:nfa_dm_discover.cc(2692)] state: DISCOVERY (1), event: DEACTIVATE_CMD(6) disc_flags: 0x2
02-04 23:33:15.774 3301 3301 E SecHAL : nfc_hal_write: [Cmd]Send EVT data_sending_flag = true, return size=4!!
02-04 23:33:15.777 3832 5598 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
02-04 23:33:15.777 3301 6132 E SecHAL : nfc_data_callback: [Cmd]Received a response packet : data_sending_flag = false!!
02-04 23:33:15.778 4501 6081 E libnfc_nci: [ERROR:nfc_ncif.cc(1152)] nfc_ncif_proc_deactivate - evt_data.deactivate.reason 246, nfc_cb.deact_reason = 0
02-04 23:33:15.779 4501 6081 E libnfc_nci: [ERROR:nfa_dm_discover.cc(2692)] state: DISCOVERY (1), event: DEACTIVATE_RSP(7) disc_flags: 0x22
02-04 23:33:15.780 3301 3301 E SecHAL : nfc_hal_write: [Cmd]Send EVT data_sending_flag = true, return size=7!!
02-04 23:33:15.781 3301 6132 E SecHAL : nfc_data_callback: [Cmd]Received a response packet : data_sending_flag = false!!
02-04 23:33:15.781 3301 3301 E SecHAL : nfc_hal_write: [Cmd]Send EVT data_sending_flag = true, return size=a!!
02-04 23:33:15.784 3301 6132 E SecHAL : nfc_data_callback: [Cmd]Received a response packet : data_sending_flag = false!!
02-04 23:33:15.784 4501 6081 E libnfc_nci: [ERROR:nfa_dm_discover.cc(2692)] state: IDLE (0), event: DISCOVER_RSP(1) disc_flags: 0x31
02-04 23:33:15.785 4149 4160 E BtGatt.ContextMap: remove() - removed: 8
02-04 23:33:15.807 3314 3996 E BufferQueueProducer: [NavigationBar[1822]#0] disconnect: not connected (req=1)
02-04 23:33:15.807 4149 4665 E BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_STOP, appName: android.uid.bcmgr, scannerId: 8, reportDelayMillis=0
02-04 23:33:15.811 3832 4575 E WindowManager: win=Window{27dd8e3 u0 NavigationBar} destroySurfaces: appStopped=true win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.WindowManagerService.tryStartExitingAnimation:2752 com.android.server.wm.WindowManagerService.relayoutWindow:2450 com.android.server.wm.Session.relayoutForTranslate:302 android.view.IWindowSession$Stub.onTransact:518 com.android.server.wm.Session.onTransact:186 android.os.Binder.execTransact:739 <bottom of call stack>
02-04 23:33:15.822 4149 4160 E BtGatt.ContextMap: remove() - removed: 6
02-04 23:33:15.825 4149 4665 E BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_STOP, appName: com.google.uid.shared, scannerId: 6, reportDelayMillis=0
02-04 23:33:15.827 3832 5598 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
02-04 23:33:15.828 1822 1822 E KeyguardFingerPrint: updateFingerprintListeningState#mFingerprintRunningState=1 shouldListenForFingerprint=true
02-04 23:33:15.894 4149 4665 E BtGatt.GattService: [GSIM LOG]: gsimLogHandler, msg: MESSAGE_SCAN_START, appName: android.uid.bcmgr, scannerId: 6, reportDelayMillis=0
02-04 23:33:15.907 4149 4661 E BtGatt.ScanManager: default value of curScanSetting 0 is choosen
02-04 23:33:20.014 3832 4143 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
02-04 23:33:20.032 3314 6156 E BufferQueueProducer: [com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity[5494]#0] disconnect: not connected (req=1)
02-04 23:33:20.051 3832 4143 E WindowManager: win=Window{f91f326 u0 com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity} destroySurfaces: appStopped=true win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.WindowManagerService.tryStartExitingAnimation:2752 com.android.server.wm.WindowManagerService.relayoutWindow:2450 com.android.server.wm.Session.relayoutForTranslate:302 android.view.IWindowSession$Stub.onTransact:518 com.android.server.wm.Session.onTransact:186 android.os.Binder.execTransact:739 <bottom of call stack>
02-04 23:33:20.305 3832 5598 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
02-04 23:33:20.349 3832 4143 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
02-04 23:33:20.358 3832 4143 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
02-04 23:33:20.390 1822 1822 E KeyguardFingerPrint: updateFingerprintListeningState#mFingerprintRunningState=1 shouldListenForFingerprint=true
02-04 23:33:20.393 3832 4143 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
02-04 23:33:20.419 3832 4143 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
02-04 23:33:20.485 1822 1822 E KeyguardFingerPrint: updateFingerprintListeningState#mFingerprintRunningState=1 shouldListenForFingerprint=true
02-04 23:33:20.539 3832 4143 E LockSettingsStorage: Cannot read file java.io.FileNotFoundException: /data/system/fmmpassword.key: open failed: ENOENT (No such file or directory)
02-04 23:33:35.146 3832 5598 E BartenderActivityManager: BarTender: pid : 30977 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:35.151 3832 5598 E BartenderActivityManager: BarTender: pid : 31087 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:39.858 3473 3582 E storaged: getDiskStats failed with result NOT_SUPPORTED and size 0
02-04 23:33:42.179 3832 4338 E Watchdog: !@Sync 10235 [2020-02-04 23:33:42.178] FD count : 586
02-04 23:33:45.939 3832 5598 E BartenderActivityManager: BarTender: pid : 18375 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:45.944 3832 5598 E BartenderActivityManager: BarTender: pid : 27951 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:45.949 3832 5598 E BartenderActivityManager: BarTender: pid : 28006 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:45.955 3832 5598 E BartenderActivityManager: BarTender: pid : 28027 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:45.961 3832 5598 E BartenderActivityManager: BarTender: pid : 30019 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:45.984 3832 5598 E BartenderActivityManager: BarTender: pid : 31441 cached=true abnormal=false kill=false stay=false release=false
02-04 23:33:47.325 32349 32349 E Zygote : isWhitelistProcess - Process is Whitelisted
02-04 23:33:47.328 32349 32349 E Zygote : accessInfo : 1
02-04 23:33:47.352 32349 32349 E ickSettingsTil: Not starting debugger since process cannot load the jdwp agent.
02-04 23:33:57.817 3832 5488 E BartenderActivityManager: BarTender: pid : 30659 cached=true abnormal=false kill=false stay=false release=false
02-04 23:34:12.199 3832 4338 E Watchdog: !@Sync 10236 [2020-02-04 23:34:12.199] FD count : 586
0
How to remove the border of native-base tabs
React Native NativeModules is empty Object
Building my first Native Module for Android and NativeModules is always empty. Tried a new build and a lot of different ways to include it, but no luck so far. Any Ideas?
React Native Error while trying to build android app
I am getting errors while trying to build a React Native App. (I tried both using Expo, then ejecting to React Native + Starting React Native from scratch and trying to build it).
The problem is related to the file j2objc-annotations-1.1.jar, which apparently has Denied Access
The log says the following:
Also thanks for any help.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
A problem occurred configuring root project 'MyAppName'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not download j2objc-annotations.jar (com.google.j2objc:j2objc-annotations:1.1)
> Could not get resource 'https://jcenter.bintray.com/com/google/j2objc/j2objc-annotations/1.1/j2objc-annotations-1.1.jar'.
> java.io.FileNotFoundException: C:\Users\mique\.gradle\caches\modules-2\files-2.1\com.google.j2objc\j2objc-annotations\1.1\ed28ded51a8b1c6b112568def5f4b455e6809019\j2objc-annotations-1.1.jar (Acceso denegado // Access denied in English)```
Implement unstoppable background service in react native
I am trying to run a unstoppable background service in react native which will continuously listen for messages via Socket.io from server.
For this I found several solutions with several problems
- Use FCM
The problem with method is that first I have to listen for FCM event than connect to my server and get the data(Messages + images + Videos). And I don't want to use firebase for my app as its expensive and don't want to store my user data (Mainly images) and handle user auth.
- Use react-native-background-fetch
This thing is pretty good but it only allow to run single job every 5 minutes and if your service is killed by android than you are gone
- Use Headless JS
To be honest I cannot understand its documentation
Please tell me what to s I am confused and amazed that there is no proper way to handle this TIA regards
React Native how to display Device folder for file manager app
I want to display my device folder for Gallery app development in React Native. i was searched lot at Google but no improvement. anyone have an idea, please share it.
google-services.json firebase notifications react native android - one app not working
I have three different react-native android apps in a firebase project I use for push notifications. Two of them are working just fine. The third isn't working and I can't figure out what I've done differently.
Here's what I know so far:
I get no error in app number three, but push notifications on android just never happen even though I can see in the log that the function has been triggered to schedule the notification.
These are 3 pretty similar apps and I'm using react-native-push-notification in all of them.
Push notifications on ios are already working in this project.
If I copy and paste content from the google-services.json in either of the two working examples and use it to replace the content of google-services.json in the non-working example then push notifications trigger properly on my android emulator.
The copy and paste trick is not a solution because after running react-native-bundle, attempting to run the app on android will fail because:
What went wrong: Execution failed for task ':app:processDebugGoogleServices'. > No matching client found for package name 'com.appNumberThreeName'
Going and manually changing the app name from the name of the app I copied from to the name of the third app will get rid of this error but then I wind up right back where I started. I get no error but the notification just never happens.
It seems to me that I somehow did something different in the firebase console for the third app but I can't figure out what. I enter the project, click the plus sign a the top to add an app, select android, and go through the four steps. Step number four (syncing) never completes for app 3 unless I do the copy and paste trick.
I've tried starting a new project in firebase and adding the app to that one instead and I wind up with the exact same problem.
I have gone through bitbucket to double check all the files I changed in the working examples when I added push notifications to them and to verify that what I've done in the non working project is identical. The only difference is the google-services.json files, which makes me think I did something wrong in the firebase console.
Here are examples of google-services.json files that are working and not working with sensitive info replaced with XXXXX or some wording to indicate which app it's referring to:
1. Working App One
{
"project_info": {
"project_number": "XXXXX",
"firebase_url": "XXXXX",
"project_id": "XXXXX",
"storage_bucket": "XXXXX"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "XXXXX",
"android_client_info": {
"package_name": "appOneName"
}
},
"oauth_client": [
{
"client_id": "XXXXX",
"client_type": 1,
"android_info": {
"package_name": "appOneName",
"certificate_hash": "XXXXX"
}
},
{
"client_id": "XXXXX",
"client_type": 3
}
],
"api_key": [
{
"current_key": "XXXXX"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "XXXXX",
"client_type": 3
},
{
"client_id": "XXXXX",
"client_type": 2,
"ios_info": {
"bundle_id": "appOneBundle",
"app_store_id": "XXXXX"
}
}
]
}
}
}
],
"configuration_version": "1"
}
2. Working App Two
{ "project_info": {
"project_number": "XXXXXX",
"firebase_url": "XXXXX",
"project_id": "XXXXX",
"storage_bucket": "XXXXXX" }, "client": [
{
"client_info": {
"mobilesdk_app_id": "XXXXX",
"android_client_info": {
"package_name": "appOneName"
}
},
"oauth_client": [
{
"client_id": "XXXX",
"client_type": 1,
"android_info": {
"package_name": "appOneName",
"certificate_hash": "XXXXXX"
}
},
{
"client_id": "XXXXX",
"client_type": 3
}
],
"api_key": [
{
"current_key": "XXXXX"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "XXXXX",
"client_type": 3
},
{
"client_id": "XXXXX",
"client_type": 2,
"ios_info": {
"bundle_id": "appOneBundle",
"app_store_id": "XXXXX"
}
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "XXXXX",
"android_client_info": {
"package_name": "appTwoName"
}
},
"oauth_client": [
{
"client_id": "XXXXXX",
"client_type": 3
}
],
"api_key": [
{
"current_key": "XXXXXXX"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "XXXXX",
"client_type": 3
},
{
"client_id": "XXXXX",
"client_type": 2,
"ios_info": {
"bundle_id": "appOneBundle",
"app_store_id": "XXXXX"
}
}
]
}
}
} ], "configuration_version": "1" }
3. Not Working App Three
{
"project_info": {
"project_number": "XXXXX",
"firebase_url": "XXXXX",
"project_id": "XXXXX",
"storage_bucket": "XXXXX"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "XXXXX",
"android_client_info": {
"package_name": "appThreePackageName"
}
},
"oauth_client": [
{
"client_id": "XXXXX",
"client_type": 3
}
],
"api_key": [
{
"current_key": "XXXXXX"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "XXXXX",
"client_type": 3
},
{
"client_id": "XXXXX",
"client_type": 2,
"ios_info": {
"bundle_id": "appOneBundleId",
"app_store_id": "XXXXXX"
}
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "XXXXX",
"android_client_info": {
"package_name": "appOneName"
}
},
"oauth_client": [
{
"client_id": "XXXXX",
"client_type": 1,
"android_info": {
"package_name": "appOneName",
"certificate_hash": "XXXXXX"
}
},
{
"client_id": "XXXX",
"client_type": 3
}
],
"api_key": [
{
"current_key": "XXXXXX"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "XXXXX",
"client_type": 3
},
{
"client_id": "XXXXX",
"client_type": 2,
"ios_info": {
"bundle_id": "appOneBundle",
"app_store_id": "XXXXX"
}
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "XXXXXX",
"android_client_info": {
"package_name": "com.test" //just a random extra app I added for testing
}
},
"oauth_client": [
{
"client_id": "XXXXXXXX",
"client_type": 3
}
],
"api_key": [
{
"current_key": "XXXXX"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "XXXXX",
"client_type": 3
},
{
"client_id": "XXXXXX",
"client_type": 2,
"ios_info": {
"bundle_id": "appOneBundle",
"app_store_id": "XXXXXX"
}
}
]
}
}
},
{
"client_info": {
"mobilesdk_app_id": "XXXXXXX",
"android_client_info": {
"package_name": "appTwoName"
}
},
"oauth_client": [
{
"client_id": "XXXXXX",
"client_type": 3
}
],
"api_key": [
{
"current_key": "XXXXXX"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "XXXXXX",
"client_type": 3
},
{
"client_id": "XXXXXX",
"client_type": 2,
"ios_info": {
"bundle_id": "appOneBundle",
"app_store_id": "XXXXX"
}
}
]
}
}
}
],
"configuration_version": "1"
}
Any suggestions of what to look into would be welcomed - thanks!
How to fix adb: error: cannot bind listener: Operation not permitted react-native?
I'm using Android Studio version 3.4.2, the latest, on Ubuntu 18.04LTS trying to run a react-native app in the emulator(NEXUS 5X API 29).
When I run
react-native run-android
I get this
BUILD SUCCESSFUL in 1m 54s
27 actionable tasks: 2 executed, 25 up-to-date
info Connecting to the development server...
adb: error: cannot bind listener: Operation not permitted
warn Failed to connect to development server using "adb reverse": Command failed: /home/user/Android-SDK/platform-tools/adb -s emulator-5554 reverse tcp:8081 tcp:8081
info Starting the app on "emulator-5554"...
Starting: Intent { cmp=com.albums/.MainActivity }
But the app doesn't run or start.
MY SDK LOCATION IS RIGHT /home/user/Android-SDK
My .bashrc has these lines
export ANDROID_HOME=$HOME/Android-SDK
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
My local.properties file in my react-native android project directory has
sdk.dir=/home/user/Android-SDK
The SDK location is right in the android studio SDK manager as well.
What should I do?
React Native Throw Network Error when Fetch .NET CORE 3 webApi
I'm trying to fetch a WEB API create in .NET CORE but the return is always Network Error, i'm using axios to fetch api. I'm using the URL with my ip adress(https://MY_IP:1258/)(just like when i create Node api's) and already tries CORS solution(not work)
I had already tried to fetch PokeApi and it's OK.
Thats the implementation on axios, simple