Page 1 of 1

Validate Push Notifications?

Posted: Wed Mar 06, 2019 11:21 pm
by starrdoug99
We have multiple iOS and Android apps that are starting to use push notifications to notify our users of specific actions that they need to take in the app. It is becoming a major feature in our apps and we have gotten requests to write automated tests to verify that these push notifications are being generated as expected.

Is there support for this in Ranorex that I'm just not aware of? Is there another way that I could verify these push notifications with user code or a third party tool that I could tie into Ranorex? If not, I would like to suggest that Ranorex find a way to implement support for this in a future release.

Thank you
Doug Starr

Re: Validate Push Notifications?

Posted: Thu Mar 07, 2019 8:48 am
by odklizec
Hi,

I'm pretty sure that there is no chance to work with push notifications on iOS platform and there is nothing Ranorex can do about this. Simply put, it's an iOS security restriction, which prevents 3rd party apps (like your instrumented iOS app), from accessing elements and processes outside their own context (including system messages and dialogs).

As for Android, you may be luckier here, because Ranorex offers an option to automate Android system apps (by enabling switch in settings). However, even this option does not work with everything and I'm not quite sure you will be able to track push notification messages? But at least, you can give it a try. All you have to do is to connect your mobile via USB (USB is required here) and enable Android OS flag, as described here:
https://www.ranorex.com/help/latest/web ... stem-apps/