Closed mrwhale closed 8 years ago
I think I just answered my own question. https://forums.pebble.com/t/proper-way-to-background-android-app/3630
I will rully ready this and try to implement
Okay, so closing this now. Was able to figure it out, no need to panic! Good to have this on the interweb now though as it took me a very long time to find this so hopefully this will show up in someone elses google search (https://github.com/jawsper/pebble-menu this was a very helpful project)
PR coming very shortly with updated code @eliotstocker, so don't publish Beta just yet
So after using the new pebble integration for about a week now, I've run into a few little issues In theory these should be solved by running the pebble code as a service, but I will need some help getting this working (I originally did try to extend the pebble class as a service but things just didn't work out)
Say I start the app during the day (on the phone) the pebble app works straight away and will continue to work for some time after. However if I go to use the pebble app later that day, it doesn't work until I restart the Light-controller app
All examples I could find had everything running from the MainActivity class, so couldn't find anything that had the pebble code split from the main code. Some advice and/or examples of how to have it listening even if the main app isn't active/or in the foreground (like what the wear app does)