{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Supporting Deeplinks","type":"basic","slug":"supporting-deep-links-1","excerpt":"","body":"Deeplinks can be used to link from Pulsate to your App, other Apps or Call Phone numbers. The Pulsate Panel allows you to create buttons in your marketing campaigns that will lead to deep links in your application. \n[block:callout]\n{\n  \"type\": \"danger\",\n  \"body\": \"When creating Deeplinks that target your App please remember to pick a scheme / name that will be unique. If many Apps on the device have the same Deeplink schemes / names, upon clicking the Deeplink the phone will ask with which App should it open the Deeplink instead of instantly opening your App.\",\n  \"title\": \"Deeplinks must be unique\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Add / Edit / Delete Deeplinks in Pulsate CMS\"\n}\n[/block]\nThe first step is adding the Deeplinks in the Pulsate CMS to later allow using them in campaigns (https://control.pulsatehq.com).\n\nFrom the CMS dashboard select your application and click Settings/App Settings.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/332732e-Screenshot_2020-02-28_at_14.23.34.png\",\n        \"Screenshot 2020-02-28 at 14.23.34.png\",\n        2348,\n        502,\n        \"#f4f4f4\"\n      ]\n    }\n  ]\n}\n[/block]\nIn the App Settings you will find the \"Add Deeplink\" and \"Manage Deeplinks\" sections.\nTo add a Deeplink just specify it's name and it's value and click \"Save\".\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/f2105fa-Screenshot_2020-02-28_at_14.31.37.png\",\n        \"Screenshot 2020-02-28 at 14.31.37.png\",\n        2232,\n        926,\n        \"#e9e9ea\"\n      ]\n    }\n  ]\n}\n[/block]\nThe Deeplink should now be added to your account. You can now use them when building campaigns.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/002c85e-Screenshot_2020-02-28_at_14.38.37.png\",\n        \"Screenshot 2020-02-28 at 14.38.37.png\",\n        2274,\n        1022,\n        \"#eaeaea\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Create Deeplink to call Phone Number\",\n  \"body\": \"To create a Deeplink that opens the Phone App and enters a phone number just create a Deeplink with an url formated like this \\\"tel:+123456789\\\". This will automatically open the Phone App on both Android and iOS and set \\\"+123456789\\\" as the number to call.\"\n}\n[/block]\nAlready existing Deeplinks can be edited or deleted by using the \"Edit\" and \"Delete\" buttons next to the Deeplink.\n\nAlternatively deeplinks can be added using our [CMS API](https://pulsate.readme.io/v2.2/docs/deeplinks-create-one).\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Adding Deeplinks to your App\"\n}\n[/block]\nOpen your *AndroidManifest.xml* file and add a url scheme to the activity that should open when a given deeplink is clicked.\n\nExample -  we have a DeeplinkActivity that we want to open when a *deeplink://pulsatehq/pulsate* is clicked.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<activity\\n    android:name=\\\"com.pulsate.DeeplinkActivity\\\"\\n    android:screenOrientation=\\\"portrait\\\">\\n   \\n    <intent-filter>\\n        <action android:name=\\\"android.intent.action.VIEW\\\" />\\n\\n        <!-- Handles any deeplink://pulsatehq/pulsate  URI's -->\\n        <data android:scheme=\\\"deeplink\\\"\\n            android:host=\\\"pulsatehq\\\"\\n            android:pathPrefix=\\\"/pulsate\\\" />\\n        <category android:name=\\\"android.intent.category.DEFAULT\\\" />\\n        <category android:name=\\\"android.intent.category.BROWSABLE\\\" />\\n    </intent-filter>\\n</activity>\",\n      \"language\": \"xml\"\n    }\n  ]\n}\n[/block]\nThis will cause any link that starts with *\"deeplink://pulsatehq/pulsate\"* to open your *DeeplinkActivity*.","updates":[],"order":20,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"5e5019b49e8f240011cc6a6b","category":{"sync":{"isSync":false,"url":""},"pages":["5e5019b49e8f240011cc6a55","5e5019b49e8f240011cc6a56","5e5019b49e8f240011cc6a57","5e5019b49e8f240011cc6a58","5e5019b49e8f240011cc6a59","5e5019b49e8f240011cc6a5a","5e5019b49e8f240011cc6a5b","5e5019b49e8f240011cc6a5c","5e5019b49e8f240011cc6a5d","5e5019b49e8f240011cc6a5e","5e5019b49e8f240011cc6a68","5e5019b49e8f240011cc6a6b","5e5019b49e8f240011cc6a71","5e5019b49e8f240011cc6a73","5e5019b49e8f240011cc6a7e","5e5019b49e8f240011cc6a80","5e5019b49e8f240011cc6a81","5e5019b49e8f240011cc6a82","5e5019b49e8f240011cc6a84"],"title":"Android SDK","slug":"android-sdk","order":1,"from_sync":false,"reference":false,"_id":"5e5019b49e8f240011cc6a49","version":"5e5019b49e8f240011cc6ade","__v":10,"project":"54aa7f773b56130b0056c86e","createdAt":"2015-01-05T12:44:00.338Z"},"user":"54aa7f3f9bb00c0b00cb899b","version":{"version":"2.8","version_clean":"2.8.0","codename":"Android SDK","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["5e5019b49e8f240011cc6a47","55781fe35129590d003ff4f9","55781fe35129590d003ff4fa","5e5019b49e8f240011cc6a48","5e5019b49e8f240011cc6a49","5e5019b49e8f240011cc6a4a","5e5019b49e8f240011cc6a4b","5e5019b49e8f240011cc6a4c","565b66c446118c0d00dcb0bb","56898269f8dc340d00308c13","5e5019b49e8f240011cc6a4d","5e5019b49e8f240011cc6a4e","5c73dd27e8fdc000572a206a","5e5019b49e8f240011cc6a4f","5e501b7e7c8bdc00450ea66a","5e53daa9884b750025b5cad4"],"_id":"5e5019b49e8f240011cc6ade","project":"54aa7f773b56130b0056c86e","forked_from":"5e4fbbbda8fb41028f1861fe","__v":2,"createdAt":"2015-06-10T11:30:42.700Z","releaseDate":"2015-06-10T11:30:42.700Z"},"createdAt":"2015-09-15T09:47:10.413Z","githubsync":"","__v":4,"parentDoc":null,"project":"54aa7f773b56130b0056c86e"}

Supporting Deeplinks


Deeplinks can be used to link from Pulsate to your App, other Apps or Call Phone numbers. The Pulsate Panel allows you to create buttons in your marketing campaigns that will lead to deep links in your application. [block:callout] { "type": "danger", "body": "When creating Deeplinks that target your App please remember to pick a scheme / name that will be unique. If many Apps on the device have the same Deeplink schemes / names, upon clicking the Deeplink the phone will ask with which App should it open the Deeplink instead of instantly opening your App.", "title": "Deeplinks must be unique" } [/block] [block:api-header] { "title": "Add / Edit / Delete Deeplinks in Pulsate CMS" } [/block] The first step is adding the Deeplinks in the Pulsate CMS to later allow using them in campaigns (https://control.pulsatehq.com). From the CMS dashboard select your application and click Settings/App Settings. [block:image] { "images": [ { "image": [ "https://files.readme.io/332732e-Screenshot_2020-02-28_at_14.23.34.png", "Screenshot 2020-02-28 at 14.23.34.png", 2348, 502, "#f4f4f4" ] } ] } [/block] In the App Settings you will find the "Add Deeplink" and "Manage Deeplinks" sections. To add a Deeplink just specify it's name and it's value and click "Save". [block:image] { "images": [ { "image": [ "https://files.readme.io/f2105fa-Screenshot_2020-02-28_at_14.31.37.png", "Screenshot 2020-02-28 at 14.31.37.png", 2232, 926, "#e9e9ea" ] } ] } [/block] The Deeplink should now be added to your account. You can now use them when building campaigns. [block:image] { "images": [ { "image": [ "https://files.readme.io/002c85e-Screenshot_2020-02-28_at_14.38.37.png", "Screenshot 2020-02-28 at 14.38.37.png", 2274, 1022, "#eaeaea" ] } ] } [/block] [block:callout] { "type": "info", "title": "Create Deeplink to call Phone Number", "body": "To create a Deeplink that opens the Phone App and enters a phone number just create a Deeplink with an url formated like this \"tel:+123456789\". This will automatically open the Phone App on both Android and iOS and set \"+123456789\" as the number to call." } [/block] Already existing Deeplinks can be edited or deleted by using the "Edit" and "Delete" buttons next to the Deeplink. Alternatively deeplinks can be added using our [CMS API](https://pulsate.readme.io/v2.2/docs/deeplinks-create-one). [block:api-header] { "type": "basic", "title": "Adding Deeplinks to your App" } [/block] Open your *AndroidManifest.xml* file and add a url scheme to the activity that should open when a given deeplink is clicked. Example - we have a DeeplinkActivity that we want to open when a *deeplink://pulsatehq/pulsate* is clicked. [block:code] { "codes": [ { "code": "<activity\n android:name=\"com.pulsate.DeeplinkActivity\"\n android:screenOrientation=\"portrait\">\n \n <intent-filter>\n <action android:name=\"android.intent.action.VIEW\" />\n\n <!-- Handles any deeplink://pulsatehq/pulsate URI's -->\n <data android:scheme=\"deeplink\"\n android:host=\"pulsatehq\"\n android:pathPrefix=\"/pulsate\" />\n <category android:name=\"android.intent.category.DEFAULT\" />\n <category android:name=\"android.intent.category.BROWSABLE\" />\n </intent-filter>\n</activity>", "language": "xml" } ] } [/block] This will cause any link that starts with *"deeplink://pulsatehq/pulsate"* to open your *DeeplinkActivity*.