Custom In-App Message View for Cordova

I am attempting to replace the in-app messaging drawer UI and UX with my own UI/UX consistent with my app. I don't see anything in the Cordova extension documentation about doing this -- is that correct?

It seems like you can do this natively by extending the various in-app messaging view classes and creating categories, but there is no way to do this with Cordova?

A potential workaround I'm investigating is to simply handle the "push" event within my Cordova code to display my own in-app message. The one issue I see with that workaround is that I cannot prevent the default in-app messaging drawer from displaying. 

Any ideas on how I can do that, even if I have to add support for that natively? It's not ideal to change the native code for the Cordova plugin, but I can do it and maintain my own fork (or submit a PR if other folks want this functionality).

Didn't find what you were looking for?

New post



  • Hi Keenan,

    This is Sean with Urban Airship Technical Support.

    You are correct, there is not a way to customize the In-App message view beyond the color options you get in the Dashboard when using the Cordova plugin.

    Regarding your work around, you could send a regular push notification with Custom Keys to trigger an in-app message view that you have created.

    You are also more than welcome to fork our Cordova plugin and submit a PR if you end up digging into the plugin code and rigging up a solution yourself.

    Please let me know if you have any other questions or concerns.

    Thank you,
    Sean Conlin
    Urban Airship Technical Support
    Portland, Oregon

    Comment actions Permalink
  • Thanks Sean.

    In the interest of time, I'm going to bypass the UA framework and I just built my message into the app itself. I know I'm giving up the flexibility and control of the UA dashboard and I won't be able to control remotely, but time is a factor.

    I will 100% see if I can add support for custom in-app message views to the Cordova plugin. If no one else has this need yet, I imagine people will definitely need it in the future.

    Comment actions Permalink

Please sign in to leave a comment.