HI everyone
I just implemented [push notifications](https://ionicframework.com/docs
/native/push/) in my app.
I debugged iOS using XCode. There you can see your console logs.
My problem is now that I can’t debug Android. When I run the app on my phone using: ionic cordova run android -l -c -s --bug
I can see logs, but it’s not using Cordova. How can I make sure Cordova is running and still see the logs on Android?
Does anyone have an idea how to do this?
Here is my Ionic Info btw:
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : android 7.1.0 ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
ios-deploy : 1.9.2
ios-sim : 6.1.2
Node : v9.4.0
npm : 5.8.0
OS : macOS High Sierra
Xcode : Xcode 9.3 Build version 9E145
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
Did you remote debug the problem on the device/emulator already? Follow these instructions here to debug the problem in Chrome dev tools: https://ionic.zone/debug/remote-debug-your-app#android
2 Likes
First of all thank Sujan for having my back You always answer my problems lately! Thank you very much for that
I don’t really know what you mean with your question. I can’t debug the problem on the device, since I don’t see console logs and I need Cordova.
Click the link, follow the instructions, and you will see the console logs of the app running on your device with Cordova.
1 Like
Already on it! Thank you, you saved my day
1 Like