Is there a way to debug (breakpoints) my app via Xcode if it's not running already and was launched as a result of swiping a remote notification from the locked screen?
Obviously I can't just add breakpoints and expect execution to halt since I need to fire the app via Xcode in order to debug?
However, you need to make sure you're using an APK with debugging enabled. To start debugging an APK, click Profile or debug APK from the Android Studio Welcome screen. Or, if you already have a project open, click File > Profile or Debug APK from the menu bar.
USB Debugging allows an Android device to communicate with a computer that's running the Android SDK in order to use advanced operations. When you develop Android apps, you have to install the Android Software Developer Kit (SDK) on your computer.
USB Debugging mode is a developer mode in Samsung Android phones that allows newly programmed apps to be copied via USB to the device for testing. Depending on the OS version and installed utilities, the mode must be turned on to let developers read internal logs.
You can launch the app in Xcode but set the scheme to wait for an external launch trigger. In this mode Xcode will watch and wait for something else to open the app.
To do this, edit the scheme, select the info
section and then select Wait for executable to be launched
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With