I’m going a little crazy over here and I can’t even figure out if this should work. I’m attempting to write a Google Calendar app that creates Contact Sensors based on calendar/search. Kind of merging the Service Manager and Parent-Child app into one.
So I have the parent app
- GCal Search
That creates instances of the child app
- GCal Search Trigger
In the trigger I create the custom device type
- GCal Event
So far things are going well. When I’m on the device tile for the GCal Event I want to have a refresh button to pull the latest event that matches. So I call parent.getNextEvent() which I thought was going to call GCal Seach Trigger.getNextEvent()
Instead it passes over that call never calling any of my log/trace statements in child app.
Is this even possible or does the device never know who it’s parent is? It does error out if I give it an invalid method to call on the parent so it makes me think it’s possible.
I’ve even gone down the path of creating an event and subscribing to it in order to get this working. I still don’t get any of my log/trace calls in the live log but it is showing as subscribed in the app.
Is there a code cache somewhere I have to invalidate?