i am trying to run my ionic app on android device
ionic build
ionic cap open android
on web browser application works fine but its not performing same on android.
Here is my console output, can someone please tell me why this is happening:
$ adb shell am start -n "io.teri.directory/io.teri.directory.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 25608 on device 'nextbit-robin-NBQGLMB612800898'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/.teri.director: Late-enabling -Xcheck:jni
W/FirebaseApp: Default FirebaseApp failed to initialize because no default options were found. This usually means that com.google.gms:google-services was not applied to your gradle ``project.
I/FirebaseInitProvider: FirebaseApp initialization unsuccessful
W/.teri.director: Accessing hidden method Landroid/graphics/drawable/Drawable;->getOpticalInsets()Landroid/graphics/Insets; (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking)
Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking)
E/.teri.director: Invalid ID 0x00000000.
W/.teri.director: Accessing hidden method Landroid/view/View;->getAccessibilityDelegate()Landroid/view/View$AccessibilityDelegate; (light greylist, linking)
W/.teri.director: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
W/.teri.director: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
I/WebViewFactory: Loading com.android.chrome version 85.0.4183.101 (code 418310173)
E/.teri.director: Invalid ID 0x00000000.
E/.teri.director: Invalid ID 0x00000000.
I/cr_LibraryLoader: Loaded native library version number "85.0.4183.101"
I/cr_CachingUmaRecorder: Flushed 5 samples from 5 histograms.
W/.teri.director: Accessing hidden method Landroid/content/Context;->bindServiceAsUser(Landroid/content/Intent;Landroid/content/ServiceConnection;ILandroid/os/Handler;Landroid/os/UserHandle;)Z (light greylist, reflection)
E/chromium: [ERROR:filesystem_posix.cc(62)] mkdir /data/user/0/io.teri.directory/cache/WebView/Crashpad: No such file or directory (2)
D/Capacitor: Starting BridgeActivity
D/Capacitor: Registering plugin: App
D/Capacitor: Registering plugin: Accessibility
D/Capacitor: Registering plugin: BackgroundTask
D/Capacitor: Registering plugin: Browser
D/Capacitor: Registering plugin: Camera
D/Capacitor: Registering plugin: Clipboard
D/Capacitor: Registering plugin: Device
D/Capacitor: Registering plugin: LocalNotifications
D/Capacitor: Registering plugin: Filesystem
D/Capacitor: Registering plugin: Geolocation
D/Capacitor: Registering plugin: Haptics
D/Capacitor: Registering plugin: Keyboard
D/Capacitor: Registering plugin: Modals
D/Capacitor: Registering plugin: Network
D/Capacitor: Registering plugin: Permissions
D/Capacitor: Registering plugin: Photos
D/Capacitor: Registering plugin: PushNotifications
D/Capacitor: Registering plugin: Share
D/Capacitor: Registering plugin: SplashScreen
D/Capacitor: Registering plugin: StatusBar
D/Capacitor: Registering plugin: Storage
D/Capacitor: Registering plugin: Toast
D/Capacitor: Registering plugin: WebView
I/.teri.director: Background concurrent copying GC freed 74620(4MB) AllocSpace objects, 20(512KB) LOS objects, 61% free, 3MB/9MB, paused 120us total 283.687ms
D/Capacitor: Loading app at http://localhost
W/.teri.director: Accessing hidden method Landroid/media/AudioManager;->getOutputLatency(I)I (light greylist, reflection)
W/cr_media: Requires BLUETOOTH permission
I/Adreno: QUALCOMM build : ce5aeb9, I750f7f2fa6
Build Date : 03/24/17
OpenGL ES Shader Compiler Version: XE031.09.00.03
Local Branch : mybranch25481872
Remote Branch : quic/LA.BF64.1.2.3_rb1.11
Remote Branch : NONE
Reconstruct Branch : NOTHING
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
D/Capacitor/LN: LocalNotification received: null
Activity started without notification attached
D/Capacitor: App started
D/Capacitor/App: Firing change: true
V/Capacitor/App: Notifying listeners for event appStateChange
D/Capacitor/App: No listeners found for event appStateChange
D/Capacitor: App resumed
D/OpenGLRenderer: Skia GL Pipeline
D/Capacitor: Handling local request: http://localhost/
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
V/Capacitor/Network: Notifying listeners for event networkStatusChange
D/Capacitor/Network: No listeners found for event networkStatusChange
D/vndksupport: Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
D/vndksupport: Loading /vendor/lib64/hw/gralloc.msm8992.so from current namespace instead of sphal namespace.
W/.teri.director: Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
W/InputMethodManager: Ignoring onBind: cur seq=66, given seq=65
D/Capacitor: Handling local request: http://localhost/runtime-es2015.e735e20b0ac16990536f.js
D/Capacitor: Handling local request: http://localhost/styles.62cfb0514344aa8349ae.css
D/Capacitor: Handling local request: http://localhost/polyfills-es2015.048fb8854c66c2bbd96e.js
D/Capacitor: Handling local request: http://localhost/main-es2015.a81b23eb4139a8159048.js
I/Capacitor/Console: File: capacitor-runtime.js - Line 2398 - Msg: onscript loading complete
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
D/Capacitor: SplashScreen was automatically hidden after the launch timeout. You should call 'SplashScreen.hide()' as soon as your web app is loaded (or increase the timeout).Read more at https://capacitorjs.com/docs/apis/splash-screen#hiding-the-splash-screen
D/Capacitor: Handling local request: http://localhost/common-es2015.73c1c9cb96f0cd87273c.js
D/Capacitor: Handling local request: http://localhost/19-es2015.523b6515af30a8373edb.js
D/Capacitor: Handling local request: http://localhost/2-es2015.9bd8c85a044fa6dddf88.js
D/Capacitor: Handling local request: http://localhost/11-es2015.2fe37655a67553e30f65.js
I/Capacitor/Console: File: http://localhost/main-es2015.a81b23eb4139a8159048.js - Line 1 - Msg: Ionic Native: deviceready event fired after 535 ms
W/Capacitor/Console: File: http://localhost/main-es2015.a81b23eb4139a8159048.js - Line 1 - Msg: Native: tried calling StatusBar.styleDefault, but the StatusBar plugin is not installed.
W/Capacitor/Console: File: http://localhost/main-es2015.a81b23eb4139a8159048.js - Line 1 - Msg: Install the StatusBar plugin: 'ionic cordova plugin add cordova-plugin-statusbar'
W/Capacitor/Console: File: http://localhost/main-es2015.a81b23eb4139a8159048.js - Line 1 - Msg: Native: tried calling SplashScreen.hide, but the SplashScreen plugin is not installed.
W/Capacitor/Console: File: http://localhost/main-es2015.a81b23eb4139a8159048.js - Line 1 - Msg: Install the SplashScreen plugin: 'ionic cordova plugin add cordova-plugin-splashscreen'
D/Capacitor: Handling local request: http://localhost/3-es2015.8d7656f7df5b3d7daecb.js
D/Capacitor: Handling local request: http://localhost/13-es2015.ac19c48b67abc85e2d9b.js
D/Capacitor: Handling local request: http://localhost/14-es2015.aeb03e9affe98eeaa608.js
D/Capacitor: Handling local request: http://localhost/12-es2015.9403e5010cd42b83905b.js
I/Capacitor/Console: File: http://localhost/2-es2015.9bd8c85a044fa6dddf88.js - Line 1 - Msg: SyncData() -----> universal
I/Capacitor/Console: File: http://localhost/2-es2015.9bd8c85a044fa6dddf88.js - Line 1 - Msg: header init -----> universal
D/Capacitor: Handling local request: http://localhost/assets/images/teri-logo.jpg
D/Capacitor: Handling local request: http://localhost/assets/images/bg1.jpg
E/Capacitor/Console: File: http://localhost/main-es2015.a81b23eb4139a8159048.js - Line 1 - Msg: ERROR [object Object]
D/Capacitor: Handling local request: http://localhost/64-es2015.1c9801347c35fb0c96c7.js