Skip to main content

Android foreground &background event firing

Hey guys, here i wanna share the way to implement foreground and background event firing.

In appcelerator titanium, we need to wait the first window opened before we register the events. Thats all.

Note:

if you want to implement background service trigger after application minimized as happen in iOS, you should use 'stop' event. This is because 'pause' event also fired when ever your window blured.

In android, window blur event triggered when ever a dialog opened or a modal window opened.

So, simple to say here is android puase event equal to window blur event.

Check out the code in my personal repo here.


Popular posts from this blog

Laravel Voyager Nested Resources

Voyager is the Laravel missing admin panel. Voyager version 0.10.13 by default not provide nested resources. So these what i found to achieve that.
Issue 1 - Routing & ViewI want to create a bread for the books and the pages.

/admin/books - works by default
/admin/book-pages - works by default
/admin/books/{book_id}/book-pages/create - how?
/admin/books/{book_id}/book-pages/{book_page_id}/edit - how? here the guide: https://github.com/the-control-group/voyager/issues/713
Issue 2 - Controller Level dataTypeContent Filter$dataTypeContent in views/vendor/voyager/{slug}/browse.blade.php my book-pages resource under books resources. books/{book}/book-pages I have no idea how to filter the dataTypeContent by the book.
here the guide: https://github.com/the-control-group/voyager/issues/714