You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
I'm just doing a quick test prototype to make sure that I can in fact respond to volume buttons presses. I installed VolumeButtonHandler via Cocoapods, ensured that my project sees it and implemented the following as a test in ViewController.m
I had the same issue a while ago and found that you need to call: [self.volumeHandler start];
after you initialize the volumeHandler. (I'm doing it in swift, so I'm guessing about the method signature for Obj-C). You should also do: [self.volumeHandler stop]; self.volumeHandler = nil;
in something like the viewDidDisappear() or similar, depending on your usage.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm just doing a quick test prototype to make sure that I can in fact respond to volume buttons presses. I installed VolumeButtonHandler via Cocoapods, ensured that my project sees it and implemented the following as a test in
ViewController.m
When I load it up on my iPhone6, It doesn't print anything to my label upon pressing vol up or down
The text was updated successfully, but these errors were encountered: