Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 1,158
Registered: ‎03-20-2013
My Device: Red LE Developer Z10
My Carrier: Fido

Frustrating Remember and Share invocation behaviour

My app lets a user send links to the Remember app in two ways either by directly invoking the Remember app card, or via a Share invocation. In both cases the link gets prepopulated into the body of the note from a QString value. BB10 converts the value into an actual link, so when the note is viewed in either Remember or the BB10 native Evernote app, the link can be tapped and the BB10 Browser opens the link. All good so far.

 

The problem is that in both cases the link is converted from a http:// URI to a complicated invoke:// URI which works perfectly on a BB10 device, but is useless anywhere else. If you open the note in the desktop Evernote client the link looks fine on the page, but if you click on it, instead of the displayed text of the link, it tries to open something like:

 

invoke://1,default:0,eyJ1cmkiOiJodHRwOi8vZmVlZHByb3h5Lmdvb2dsZS5jb20vfnIvY3JhY2tiZXJyeS9xQlRCL34zL1p0MlROQndxN2VZL3N0b3J5MDEuaHRtIiwiZGF0YSI6ImFIUjBjRG92TDJabFpXUndjbTk0ZVM1bmIyOW5iR1V1WTI5dEwzNXlMMk55WVdOclltVnljbmt2Y1VKVVFpOStNeTlhZERKVVRrSjNjVGRsV1M5emRHOXllVEF4TG1oMGJRQT0ifQ==

 

If you click on the link nothing happens. The visible text of the link is the correct http:// URI so you can copy it and paste it into the URL field in the browser, but this is obviously less than optimal. If you share the link directly with the BB10 native Evernote app instead of going through the Remember app, the link string is not converted into an actual link at all so when you look at it in the desktop client you can't click on it, just copy and paste it.

 

One of Evernote's best features is its broad platform support and most of its users expect something saved from a BB10 device to work the same on any of the other platform clients as it does in the BB10 one. As it stands, the only place one of these invoke:// URIs will work is on an actual BB10 device.

 

Does anyone have any idea how to get Remember to stop converting http:// URIs in the body of a note into something that only works on a BB10 device?



Developer of Built for BlackBerry certified multiFEED RSS/Atom feed reader and aggregator.  multiFEED Icon

Play nice: Clicking Like Button on posts that helped you not only encourages others to continue sharing their experience, but also improves your own rating on this board. Also, don't forget to accept a post if it solves your problem or answers your question.
Retired
Posts: 252
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10
My Carrier: Bell

Re: Frustrating Remember and Share invocation behaviour

Hi greenmr,

 

I suggest you open a jira ticket for the issue  you are experiencing. There, please include a working code snippet that would help our internal teams reproduce and investigate the issue further. Here's the link to Jira:

 

https://www.blackberry.com/jira/secure/Dashboard.jspa

 

Once done, please also share the link to your ticket in this forum post.

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Retired
Posts: 249
Registered: ‎07-14-2008
My Device: Not Specified

Re: Frustrating Remember and Share invocation behaviour

In the mean time I have also started an investigation of this issue with Remember team.

 

Shadid

Retired
Posts: 249
Registered: ‎07-14-2008
My Device: Not Specified

Re: Frustrating Remember and Share invocation behaviour

Hi,
Can you please share some code showing how you are invoking remember?

Shadid
Highlighted
Developer
Posts: 1,158
Registered: ‎03-20-2013
My Device: Red LE Developer Z10
My Carrier: Fido

Re: Frustrating Remember and Share invocation behaviour

Ok, no need for me to post any code... this is not an invocation or share problem, it is a Remember issue.

 

To duplicate this you can do it entirely from Remember:

 

  1. Open the Remember app.
  2. Select an Evernote notebook
  3. Add a new note to that notebook.
  4. Give it a subject and in the body enter a URL of the form "http://domain".
  5. Save the note.
  6. Wait for Remember to sync with Evernote, then sign in to Evernote on a desktop browser.
  7. Open the note you just created.
  8. Click on the link in the body.

You will notice that clicking on the link has no effect, and if you inspect the href for the link you will see that it is not an http:// URI but has instead been changed to invoke:// by Remember.

 

On the BB10 device where you created this note the invoke:// URI works as intended, launching the BB10 Browser to display the page, but when you open the Evernote note on any other platform the link is useless since invoke:// is not a valid URI there. This is a serious flaw in Remember<->Evernote syncing. If Remember wants to convert URLs to invocations for it's own purposes, that is fine, but when sending those notes to Evernote it should be converting them back into a valid http:// URI.



Developer of Built for BlackBerry certified multiFEED RSS/Atom feed reader and aggregator.  multiFEED Icon

Play nice: Clicking Like Button on posts that helped you not only encourages others to continue sharing their experience, but also improves your own rating on this board. Also, don't forget to accept a post if it solves your problem or answers your question.
New Developer
Posts: 1
Registered: ‎05-19-2014
My Device: Z10
My Carrier: T Mobile

Re: Frustrating Remember and Share invocation behaviour

Is there any progress on this issue?  I just ran into it myself and a kind Evernote forum user sent me here.