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

Web and WebWorks Development

Reply
Contributor
lovince
Posts: 13
Registered: ‎01-17-2011
My Device: Z10 LE (in Transit)
My Carrier: CMHK
Accepted Solution

WebWorks and Analytics Services

Is there a way to get the Flurry Analytics service work in a WebWorks app? I'm not sure what I will lose out on by creating a Web app in the Flurry management console.

Please use plain text.
Developer
peardox
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: WebWorks and Analytics Services

I've just had a quick look at Flurry

 

They only document use via Native or Cascades so it won't work with WebWorks as it stands but looks to be easy enough to wrap in a native extension

 

I'll stick it on my todo list - ask me again in a week or two if I don't get back to you first




Click the like button if you find my posts useful!
Please use plain text.
Contributor
lovince
Posts: 13
Registered: ‎01-17-2011
My Device: Z10 LE (in Transit)
My Carrier: CMHK

Re: WebWorks and Analytics Services

Awesome! Meanwhile I'll play with the Web apps SDK.

Please use plain text.
BlackBerry Development Advisor (Retired)
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: WebWorks and Analytics Services

Actually, Flurry *just* launched a MobileWeb SDK (yesterday), so you can now use their analytics services in a WebWorks application:

 

http://support.flurry.com/index.php?title=Analytics/FAQ/MobileWeb

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Developer
peardox
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: WebWorks and Analytics Services

Adam

 

Sounds perfect so is there any advantage to me writing an extension?

 

The only thing I don't like about this kinda solution is the possible security ramifications (nobody argue over this or we'll never get this finished...)

 

Would it be 'better', in your opinion to hook directly into native via a Native Extension

 

See - I paid attention in Amsteram :smileyhappy:




Click the like button if you find my posts useful!
Please use plain text.
BlackBerry Development Advisor (Retired)
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: WebWorks and Analytics Services

Given there is a WebSDK, the native extension is not required.

 

The Web API will require that you provide keys in order to authenticate / authorize your app with their services - very similar to how Google analytics works.  So I don't think it is necessary to hide it away within a native extension.

 

As Simon suggests, if you wish to obfuscate those values, burying them in a compiled *.so extension could be one way of hiding them.

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Developer
peardox
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: WebWorks and Analytics Services

Yes - that is my exact point, I just didn't wanna spell it out

 

It is not an issue in most cases but can I give you a hypothetical

 

You write a break-out (an app that goes viral that everyone buys without ever having used) on word of mouth

 

Now - assume that someone extracts your key - start worrying

 

I hate not giving a full answer but explaining in full is dangerous

 

Simply put I think we need the direct Web SDK for general use and a secure version for the high end




Click the like button if you find my posts useful!
Please use plain text.