We are using the Phonegap/Cordova library and the createBranchUniversalObject function for creating url's and then using the showShareSheet function to share it.
We've been requested to give the link an alias, ie https://cordova.app.link/iAmAnAlias
Since an alias is unique, the next call to createBranchUniversalObject for the same alias fails.
We're looking for a way to check if the alias exists and if so not to createBranchUniversalObject but just use that as the url. Only if the alias does not exis would we then createBranchUniversalObject.
There is no Branch Cordova SDK call that will check if an alias is already in use. If you plan for a user to always share the same link, you will have to implement some logic to store their referral link in your database.
Related
I have created a deep link successfully & configured baranch.io, but the problem is I have a URL e.g: https://example.com/magiclink/token/*
so, if you can see above the URL, there is * at the end, which means after the "token/" the unique token will be shared instead of *, so as you know in branch.io as far as I know, it gives us the static link to be shared with someone. but in my case, the link can not be static.
Can anyone help me to achieve this?
Thanks in Advance
If you just need to pass a unique token with each of your links then you can append it to your Branch.io link as a Link parameter.
eg. https://www.example.com/magiclink?token=*
Now, you can dynamically change the value of the token and it won't affect your link.
A regular deep link dynamically generated using the iOS/Android SDK's might look like this: https://example.app.link/fzmLEhobLD
Would I be able to dynamically generate a deep link that would look something like: https://example.app.link/jsmith49
this would greatly help for marketing purposes
If yes, how?
Jackie from Branch here.
You can definitely use a link alias to replace the standard encoded short URL (e.g. https://example.app.link/fzmLEhobLD -> https://example.app.link/jsmith49). Note that link aliases must be unique, otherwise a 409 error will occur.
If you are creating Branch links via the SDK and/or HTTP API, you'd need to set the value of 'alias' key. Please refer to our documentation on configuring links here.
Alternatively, you can use the Branch dashboard to create links by entering the link alias on the 'Configure Options' step here.
Let us know if you have more questions. Hope this helps!
When I set up a branch.io link I see that after the redirect it is something like
http://www.bbc.co.uk/?_branch_match_id=241114587404660876
What is the _branch_match_id parameter?
Is this added onto every link redirect or can it be omitted?
Alex from Branch.io here: the _branch_match_id is a unique ID we append to every link redirection as part of our matching algorithm. It allows us to track where traffic is coming from, so that we can identify each user again within the app after it opens/is installed. There is no way to remove it :)
Our product (Yoke.io) integrates Evernote through REST API. We need to generate direct URL link to a specific notebook, note or tag so that user can click the link to access them.
However, current URL format contains parameters named "ses", "sh" and "sds" in addition to the ids for notebook/note/tag. I have no idea what these parameters mean and if they are different for different users, platforms, etc.
For example, if I want to access a notebook with id "3ec5f3c1-bd4d-4f94-b924-367b13eaf3bc", and generate the following links:
https://www.evernote.com/Home.action#b=3ec5f3c1-bd4d-4f94-b924-367b13eaf3bc
https://www.evernote.com/Home.action#b=3ec5f3c1-bd4d-4f94-b924-367b13eaf3bc&ses=4&sh=1&sds=5&
The first link (#1) won't work but the second link (#2) works.
I could hard-code "ses", "sh" and "sds" parameters in the URL but my feelings is that these parameters will change for different users.
Could anyone explain more on what are these parameters for and how I can generate a direct URL link to a specific Evernote notebook/note/tag?
Thanks a lot for your help.
Regards,
Tao
ses, sh and sds are hash parameters we use when serializing the state of the web client. If you try manipulating the hash parameters to get the web client into a certain state, note that these are undocumented APIs and are subject to change at any time. That said, they won't change super often.
None of those three parameters will change on a per-user basis, they represent the "view" of the client you're in at the time. The simplest way to get a url in the format you like is to navigate to that view in the web client, copy the hash, and replace note and/or notebook guids in the url (b for the notebook guid and n for the note guid).
I have an Application for the Mac that I want to publish on in the app store.
I order to get it published I need to put in a sandbox.
The app access Sqlite files outside the sandbox which the user selects from a openpanel.
The App works fine when is performs a select but it fails on inserts and updates.
I can remember reading something about some function you could call that could give you write access to files outside the sandbox but for the life I can remember what is was Can anyone enlighten me ?
Regards Christian Arild Stœr Andersen
Add "com.apple.security.files.bookmarks.app-scope" with boolean value YES in entitlement file of your project. Add follow "With Sandboxing" section of this link --
http://cocoaintheshell.com/2012/09/saving-sandboxing/
When you resolve your URL, by using URLByResolvingBookmarkData: method, you will get the url something like this --
file://localhost/Users/XYZ/Downloads/MyAudio.mp3?applesecurityscope=353734653735396237656239646134396537363331633063393765356234363035353666326332393b30303030303030303b3030303034534534343030303032303b636f6d2e6170706c652e6170702d73616e64626f782e726561642d77726974653b30303030303030313b30313030303030323b303030303030303030303035633134613b2f75736572732f69706874656368322f646f776e6c6f616473
For more information search for -- "NSURLBookmarkCreationWithSecurityScope"