Page Redirection/Navigation

Once your app is successfully configured with NotifyVisitors Android SDK we handle page redirections through push notifications, in-app banners/surveys, or notification center.

Let's check it out in detail.

Page redirection through Push Notification

We have 6 options to redirect:

  • Navigate in App
  • Navigate to Webpage
  • Navigate to Third-party app
  • Share
  • Call
  • App Link (supported from SDK v5.4.11)

Navigate in App

This option requires the path of your landing page (ie., activity path). If your app is in the background or foreground it will directly open your destined page. If the app is closed then it will first open your app and then redirect it to the destined page.

📘

Note

Activity Path = <app’s package name> + “.” + <activity name>

For example, com.example.testapp.MainActivity

Navigate to WebPage

This option requires the website URL. This will redirect to the webpage.

For example, https://support.notifyvisitors.com/support/home

Navigate to Third Party App

This option requires the third party app’s package name to launch it. This will redirect you to another app.

For example, com.instagram.android

Share

This option requires the text to be shared. Once you click on CTA it will show you sharing options with the text to be shared. For reference, checkout the screenshot below.

Call

This option requires contact number. This will open the dialed pad with the contact number you have entered. For reference screenshot attached below.

App Link

Supported from SDK v5.4.11 onwards. This option requires deep-link/universal-link/app-link. This will open the app directly.

Page redirection through InApp Banner/Survey

We have 5 options to redirect:

  • Navigate in App
  • Navigate to Webpage
  • Navigate to Third-party app
  • Share
  • Call

Navigate in App

This option requires the path of your landing page (ie., activity path).

📘

NOTE

Activity Path = <app’s package name> + “.” + <activity name>

For example, com.example.testapp.MainActivity

Navigate to WebPage

This option requires the website URL. This will redirect to the webpage.

For example, https://support.notifyvisitors.com/support/home

Navigate to Third Party App

This option requires the third party app’s package name to launch it. This will redirect you to another app.

For example, com.instagram.android

Share

This option requires the text to be shared. Once you click on CTA it will show you sharing options with the text to be shared. For reference screenshot attached below.

Call

This option requires contact number. This will open the dialed pad with the contact number you have entered. For reference screenshot attached below.

Data Received as an Intent in your activity on Push Click or Banner/Survey Click from NotifyVisitors

SDK beneath v5.4.11 we sent data as raw in intent. For example, if you print data from intent it will somehow look like this,

paramkeyOne: true 
source: nv 
paramKeyTwo: Img_99 
notificationID: 164906 
parameterIndex: slide_2

From SDK v5.4.11, we have modified it and collectively added all data in one JSON which represents intent data from NotifyVisitors. This data will come under the key name "notifyvisitors_cta". Now if you print data from intent it will somehow look like this,

notifyvisitors_cta: {
  “type”:“push”,
  “source”:“nv”,
  “actionURL”:“com.example.MainActivity”,
  “target”:0,
  “callToImageIndex”:2,
  “parameterIndex”:“slide_2”,
  “parameters”:{
     “notificationID”:164906,
     “img_name”:“img_99”,
     “isImageTwo”:true
  }
}

📘

NOTE:

Data you were getting in the raw format that is not removed for now. But we will do it in the future by June 2025. It is advised to update to the new format.

So, from SDK v5.4.11 onwards, you will be receiving data in the below format (raw + JSON both).

isImageTwo: true
source: nv
img_name: Img_99
notificationID: 164906
parameterIndex: slide_2
notifyvisitors_cta: {“type”:“push”,“source”:“nv”,“actionURL”:“com.example.MainActivity”,“target”:0,“callToImageIndex”:2,“parameterIndex”:“slide_2”,“parameters”:{“notificationID”:164906,“img_name”:“img_99”,“isImageTwo”:true}}