I am creating a test application to find out if I can make my application work with remote control.
I followed the documentation for the apple for handling remote control events, shown at:
https://developer.apple.com/library/IOS/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/Remote-ControlEvents/Remote-ControlEvents.html#//apple_ref/doc/uid/TP40009541-CH7-SW3
Now I have a dummy application in which there is nothing but calls / implementations of the functions shown in this article.
I put some print statements and found out that
remoteControlReceivedWithEvent is never called.
I did some research and I'm sure I didn’t forget to implement
canBecomeFirstResponder
I even put a print operator in it. A.
When I press the play button on my apple earphone, it just plays music from the music app and does nothing.
Can someone tell me what the problem is?
I am using the latest version of iOS7
================ Edit 1 =====================
I tested the motion and touch event, and they seem to be working fine.
It is just a remote control.
source
share