d4rken-org / capod

A companion app for AirPods on Android.
https://play.google.com/store/apps/details?id=eu.darken.capod
GNU General Public License v3.0
519 stars 44 forks source link

Unable to use on Samsung 5 watch #154

Closed yakov116 closed 3 months ago

yakov116 commented 1 year ago

When I open the app it requests notification permissions but the watch does not allow to grant it.

d4rken commented 1 year ago

What prevents the user from granting it? Is the button greyed out? Not clickable? Is there an error?

Overall I'm dropping support for the WearOS app though :crying_cat_face:. I've unpublished it from Google Play already and only the APK in GitHub releases remains. I find that I don't have enough time or motivation to maintain the WearOS app. Maybe someone else is interested in fixing this?

yakov116 commented 1 year ago

Its grayed out, this only started happening 3 versions ago.

While I totally understand you for wanting to drop support for wear os, I really enjoy your app and it works (or worked) really well.

d4rken commented 1 year ago

Its grayed out, this only started happening 3 versions ago.

Hm 3 updates ago I made the changes that Google required with the different splash graphic and time display: https://github.com/d4rken-org/capod/releases/tag/v2.9.3-rc0

If you side load that, does it work? Since I'm no longer uploading it to Google Play, I could revert all the changes I made just for Google's policies... :roll_eyes:

While I totally understand you for wanting to drop support for wear os, I really enjoy your app and it works (or worked) really well.

I'd love to keep it, it's mostly the Google Play related stuff being a headache. Google shouldn't be suprised why there are so few WearOS apps if they are so petty...

The code-base is already split into app-common, app and app-wear. Adding new devices happens just in app-common and does not require specific changes to the wear-os code, so currently maintenance is low to keep the WearOS APKs on GitHub.

Sideloading WearOS is not great though. Is it worth it? Would you sideload the WearOS APKs? If we find someone to keep an eye on the WearOS builds and maintain it, then we could keep it around. Otherwise I'd keep it as long as it works, and remove it once it starts breaking.

What do you think?

yakov116 commented 1 year ago

I really understand your frustration, and your not the only one.

Its really a big pain to sideload, buy hey as long as it works I would just stay on that version.

I will try this later and get back to you.

Thanks

Macusercom commented 11 months ago

I switched from the Fossil Gen 6 to the Samsung Galaxy Watch 5 and now I'm facing the same issue. It wants notification permissions but tapping the button does nothing. It looks like it's trying to open the settings panel but it doesn't exist on the smartwatch itself. In the Galaxy Wearables app the permission is enabled but that doesn't seem to change anything.

I've attached the logs. I understand if this is something you do not want to fix (especially if WearOS is obsolete soon)

The error is: 11-09 14:32:39.141 2677 2677 E GrantPermissionsViewModel: None of [android.permission.POST_NOTIFICATIONS] in {android.permission-group.LOCATION=[android.permission.ACCESS_BACKGROUND_LOCATION], android.permission-group.NEARBY_DEVICES=[android.permission.BLUETOOTH_CONNECT, android.permission.BLUETOOTH_SCAN]}

Here is the full log if you tap the button: 11-09 14:34:21.218 528 8355 W WindowManager: Prepare app transition: mNextAppTransitionRequests=[TRANSIT_OPEN], mNextAppTransitionFlags=, displayId: 0 Callers=com.android.server.wm.DisplayContent.prepareAppTransition:5321 com.android.server.wm.DisplayContent.prepareAppTransition:5312 com.android.server.wm.Task.startActivityLocked:5163 com.android.server.wm.ActivityStarter.startActivityInner:2010 com.android.server.wm.ActivityStarter.startActivityUnchecked:1757 11-09 14:34:21.252 528 1496 W WindowManager: Prepare app transition: mNextAppTransitionRequests=[TRANSIT_OPEN, TRANSIT_OPEN], mNextAppTransitionFlags=, displayId: 0 Callers=com.android.server.wm.DisplayContent.prepareAppTransition:5321 com.android.server.wm.TaskFragment.resumeTopActivity:1320 com.android.server.wm.Task.resumeTopActivityInnerLocked:5059 com.android.server.wm.Task.resumeTopActivityUncheckedLocked:4994 com.android.server.wm.RootWindowContainer.resumeFocusedTasksTopActivities:2272 11-09 14:34:21.253 528 1496 W ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (1651391) 11-09 14:34:21.261 528 1496 W WindowManager: Execute app transition: mNextAppTransitionRequests=[TRANSIT_OPEN, TRANSIT_OPEN], mNextAppTransitionFlags=, displayId: 0 Callers=com.android.server.wm.RootWindowContainer.executeAppTransitionForAllDisplay:2182 com.android.server.wm.ActivityTaskSupervisor.reportResumedActivityLocked:1918 com.android.server.wm.ActivityRecord.completeResumeLocked:6031 com.android.server.wm.Task.minimalResumeActivityLocked:4808 com.android.server.wm.ActivityTaskSupervisor.realStartActivityLocked:1000 11-09 14:34:21.322 528 589 W ProcessStats: Tracking association SourceState{9cf363 com.benoitletondor.pixelminimalwatchface/10133 BTopFgs #11455} whose proc state 2 is better than process ProcessState{9f39bc9 com.google.android.gms.persistent/10115 pkg=com.google.android.gms} proc state 3 (9 skipped) 11-09 14:34:21.335 425 448 W HWComposer: Ignoring duplicate VSYNC event from HWC for display 4633128672291735937 (t=1679772311990) 11-09 14:34:21.430 2677 2677 E GrantPermissionsViewModel: None of [android.permission.POST_NOTIFICATIONS] in {android.permission-group.LOCATION=[android.permission.ACCESS_BACKGROUND_LOCATION], android.permission-group.NEARBY_DEVICES=[android.permission.BLUETOOTH_CONNECT, android.permission.BLUETOOTH_SCAN]} 11-09 14:34:21.433 528 1496 W WindowManager: Prepare app transition: mNextAppTransitionRequests=[TRANSIT_OPEN, TRANSIT_OPEN, TRANSIT_CLOSE], mNextAppTransitionFlags=, displayId: 0 Callers=com.android.server.wm.DisplayContent.prepareAppTransition:5321 com.android.server.wm.DisplayContent.prepareAppTransition:5312 com.android.server.wm.ActivityRecord.finishIfPossible:3428 com.android.server.wm.ActivityClientController.finishActivity:477 android.app.IActivityClientController$Stub.onTransact:695 11-09 14:34:21.450 528 1437 W WindowManager: Prepare app transition: mNextAppTransitionRequests=[TRANSIT_OPEN, TRANSIT_OPEN, TRANSIT_CLOSE, TRANSIT_CLOSE], mNextAppTransitionFlags=, displayId: 0 Callers=com.android.server.wm.DisplayContent.prepareAppTransition:5321 com.android.server.wm.DisplayContent.prepareAppTransition:5312 com.android.server.wm.TaskFragment.resumeTopActivity:1309 com.android.server.wm.Task.resumeTopActivityInnerLocked:5059 com.android.server.wm.Task.resumeTopActivityUncheckedLocked:4994 11-09 14:34:21.456 528 1437 W WindowManager: Execute app transition: mNextAppTransitionRequests=[TRANSIT_OPEN, TRANSIT_OPEN, TRANSIT_CLOSE, TRANSIT_CLOSE], mNextAppTransitionFlags=, displayId: 0 Callers=com.android.server.wm.RootWindowContainer.executeAppTransitionForAllDisplay:2182 com.android.server.wm.ActivityTaskSupervisor.reportResumedActivityLocked:1918 com.android.server.wm.ActivityRecord.completeResumeLocked:6031 com.android.server.wm.TaskFragment.resumeTopActivity:1484 com.android.server.wm.Task.resumeTopActivityInnerLocked:5059 11-09 14:34:21.543 528 871 W InputManager-JNI: Input channel object '1f80d0e com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity (client)' was disposed without first being removed with the input manager!