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
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

In an invoke where does the subject come from

Clumsy title sorry.

 

Looking at the following screenshot after sharing a web page or BBW page where does the text 'Check out Sympatico...' in the subject come from?

 

I have searched through all the InvokeRequest returned data and haven't found it.

 

Are the email, reminder, etc. apps reading the returned page and taking the title off of it or have I just missed it somewhere?

 

IMG_00000051.png

Thanks.

 

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
jalue
Posts: 196
Registered: ‎03-04-2013
My Device: BB Z10

Re: In an invoke where does the subject come from

I think you answered your own question... Most likely it picks up the first sentence of the message and posts it as the Subject heading.  I vaguely remember some application also doing the same somewhere, but forgot where.  Email clients perhaps?

 

Anyways, that's my assumption...

Please use plain text.
Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: In an invoke where does the subject come from

[ Edited ]

Thanks for your reply, unfortunately your assumption is not right. :smileyhappy:

I should have put a better screenshot in, this one is from the browser invoking Remember...

 

Now there is no way to infer from the data that stokLocker is the correct page title it is either passed in the InvokeReply or the page is being loaded, I can't believe the page is loaded just to get the page title by all these separate apps so I must just be missing the data somewhere?

 

[Edit] And having changed my page title it's now confirmed it's not inferred.

 

IMG_00000053.pngIMG_00000055.png

 

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
jalue
Posts: 196
Registered: ‎03-04-2013
My Device: BB Z10

Re: In an invoke where does the subject come from

[ Edited ]

Okay, test it out.. I will make another assumption here again.. That you can edit that webpage for stokLocker?  :smileyhappy:  In the <title></title> section, take out the space between the two phrases you have... As in:


Now: stokLocker (this is not in the data)

Change to: stokLocker(this is not in the data)

 

And see what it sets as the subject...

 

--Edit--

Maybe it will be "stokLocker(this" :Shifty:

Please use plain text.
Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: In an invoke where does the subject come from

[ Edited ]

That's exactly what I did do the first screenshot was the original page, the second was after I updated the page and uploaded it to my website with the title changed to 'stokLocker (this is not in the data)'.

 

This was just a sanity check as doing this randomly on BBW or the browser shows it can't possibly be inferred.

 

Okay just had a thought that the whole web page may be being passed in a file as well, off to check.

 

If anyone knows please let me know.

 

 

 

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
jalue
Posts: 196
Registered: ‎03-04-2013
My Device: BB Z10

Re: In an invoke where does the subject come from

Ah okay, you did.. But did you remove the space and check?  :smileyhappy:

Please use plain text.
Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: In an invoke where does the subject come from

Jalue, believe me it's not inferred, tried and tested. :smileyhappy:


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.
Developer
jalue
Posts: 196
Registered: ‎03-04-2013
My Device: BB Z10

Re: In an invoke where does the subject come from

One last shot.. Maybe it is using a cached version of the webpage... :Shifty:

 

Okay, well I tried...  Not that I'm doubting you or anything..  Most likely it's some discrete functionality in cards or something...

Please use plain text.
Developer
BBSJdev
Posts: 6,116
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30

Re: In an invoke where does the subject come from

:smileylol: Hey what can I say sometimes assumptions turn out wrong.

Keep trying though  :smileyvery-happy:


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Please use plain text.