Open a Mendix (phonegap) application from a notification

Hi there, I am looking for an elegant solution to the following issue; for a client we are developing a number of different mendix applications (all wrapped in Phonegap, running on Android device). Using the new push notification connector we are sending notifications to the user. After clicking the notification I would like to right application. I found the following on stack overflow but I am not sure if this applies to mendix based application ( ) any thoughts?
1 answers

My previous answer was in a comment, but having given it a bit more thought I'd like to reply a bit more extensively.

My assumption is that you have one "master" application from which you want to send the push notifications. With that in mind, I think you have two options:

Option A Include the pushnotifications module in your master app and in all your other applications. Then set up requesthandlers in all of your applications to handle sending the request to from your overlooking app. So you would send a request for a notification from you master app to one of the requesthandlers in the other apps, which will then send the actual notification. This ensures opening the right app from the notification

Option B Make use of Action Buttons and set custom handlers in your index.html for handling whatever it is you want the button to do/sending them to the right application. Check my GitHub repository for more information on this subject