If I set my applicationId
in gradle to something that does not start with com.clover
I get "Activity has leaked ServiceConnection" when I try to do orderConnector.connect();
com.clover.abcdef
works, com.abcdef
does not.
How to reproduce:
- Take
modifyorderbutton
example fromclover/android-examples
repository - Add this line to android module in app's build.gradle:
defaultConfig { applicationId "com.abc" }
- Launch application, press the 'Add discount' button, you will see this exception in logs, and order will not be changed.
I can't attach full log as a file, so I will add short version here:
11-18 15:24:13.156 29977-29977/com.abc E/ActivityThread: Activity com.clover.example.modifyorder.app.AddDiscountActivity has leaked ServiceConnection com.clover.sdk.v3.order.OrderConnector@52801948 that was originally bound here
11-18 15:24:13.156 29977-29977/com.abc E/ActivityThread: android.app.ServiceConnectionLeaked: Activity com.clover.example.modifyorder.app.AddDiscountActivity has leaked ServiceConnection com.clover.sdk.v3.order.OrderConnector@52801948 that was originally bound here
...
com.clover.sdk.v1.ServiceConnector.connect(ServiceConnector.java:119) 11-18 15:24:13.156 29977-29977/com.abc E/ActivityThread: at com.clover.example.modifyorder.app.AddDiscountActivity$2.doInBackground(AddDiscountActivity.java:50)