I'm toying with a module that incorporates the Parse.com Android SDK with Titanium, and I'm running into something I can't figure out. In Parse, when you subscribe to a push notification channel, the signature for that method looks like:
PushService.subscribe(context, "the_channel_name", YourActivity.class);Where
YourActivity.class
is the class of the activity that will launch when the user taps on the push notification. But since I'm using Titanium, I'm not sure how to reference a meaningful class here that will launch my Titanium app. Right now, I've just given it a dummy class:
class ReceivePush extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { } }That works to get me subscribed to the push notifications in Parse, but obviously that activity doesn't do anything, so when I tap the notification, it's just dismissed and nothing happens.
Any ideas/suggestions for how this might work so that when I tap the notification, I can open my Titanium app? Ideally, when I tap on the notification, I could run launch the app and run some sort of callback in my Titanium javascript code.