Forging Titanium Episode 13: Android Notifications

information superhighway

Editor’s note: This and future episodes of Forging Titanium are available here.

In this week’s episode of Forging Titanium we step into the world of Android Status Bar Notifications. With these native notifications, you can more readily keep your users engaged with the current state of your app and its content. When you consider the fact that most mobile app’s sessions can be measured in seconds, that constant engagement becomes a critical component to the ongoing success of your apps. And the best part about it? It’s built right into Titanium’s core Javascript API.

Episode Highlights

  • Learn how to launch native Android Status Bar Notifications via Ti.Android.Notification
  • See the basics of creating a native Android Service
  • A basic example of how to receive background location events from Ti.Geolocation
  • Pretty much all the native Android utilization you can handle!

Episode Resources:

7 COMMENTS

  1. The notification is creating another task when returning from the home screen.
    Getting the following line when running in the emulator. is there a work around?
    startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent

  2. hi, when using the back button to exit the app the notifications with an interval gets cancelled or for some reason don’t show. on the other hand, when using the home button to exit the app, they work as they should. Any idea how to fix this?

  3. fixed it, faked a homebtn push on back button event. now my problem is that the first notification pops up at once, when it should com after 10 seconds. after that the rest of them works correctly. any ideas on this?

Comments are closed.