Share into app

Overview

Allow your users to share data such as URL links from other apps installed on their device. Your app will appear on the list of target apps and actions when the "Share" menu is invoked anywhere on the device.

You need to define a JavaScript function on your website gonative_share_to_app(data). When the "Share" action is triggered your app will open and this JavaScript function will be called with a JSON object containing the data that is being shared. When sharing a webpage into your app you'll have access to data.url containing the page URL and data.subject with the page title or text provided by the user.

function gonative_share_to_app(data) {
   alert(data.url);
   alert(data.subject);
}
Your app available in the share dialogue prompt - iOS (Left) and Android (Right)