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

Android™ Runtime Development

Reply
New Contributor
aquinzain
Posts: 3
Registered: ‎02-18-2013
My Device: Z10
My Carrier: Orange

Google Maps in webview

Hello,

 

I'm porting an existing Android application on the new blackberry 10 OS.

I have changed the the Google maps package by using a webview with javascript Google API instead.

It's working fine on the simulator, but I have some issues on the Z10 device.

The map is well displayed, but there is no interaction with the user available (no zoom, no slide).

I've seen this message in the app logs :

"Miss a drag as we are waiting for WebCore's response for touch down".

 

The same app is also working fine on an Android device (galaxy S3).

Any idea about this issue ?

 

Thanks.

Antoine

Please use plain text.
New Contributor
Michae_T_Kelly
Posts: 5
Registered: ‎07-06-2010
My Device: Curve 8530
My Carrier: Verizon

Re: Google Maps in webview

I have actually had the same problem.  In addition, I noticed that I am getting an additional error of "cannot read property of 'style' of undefined" when the page is loaded.  This same page works fine in all of the Android versions (2.3 and up) that we support, and it also works fine on the Playbook.

Please use plain text.
Contributor
towps
Posts: 31
Registered: ‎01-10-2013
My Device: BB10 alpha dev simulator
My Carrier: ATT

Re: Google Maps in webview

Since you folks are further along than I, I am having a problem with finalizing my port to web view google map.

 

It works when I run through eclipse but not after exporting to APK.

When I run my app using exported APK I get a blank white web view. Any idea why it works running through release, with and w/o debug, but not when running exported APK? thanks, any help appreciated!

Please use plain text.
New Contributor
Michae_T_Kelly
Posts: 5
Registered: ‎07-06-2010
My Device: Curve 8530
My Carrier: Verizon

Re: Google Maps in webview

Just to add to my previous post.  I have found that by reloading the page a few times, it "fixes" itself, and works as it should.  I don't get the failure to read the property, and the map can move as expected.

Please use plain text.
New Contributor
Michae_T_Kelly
Posts: 5
Registered: ‎07-06-2010
My Device: Curve 8530
My Carrier: Verizon

Re: Google Maps in webview


towps wrote:

Since you folks are further along than I, I am having a problem with finalizing my port to web view google map.

 

It works when I run through eclipse but not after exporting to APK.

When I run my app using exported APK I get a blank white web view. Any idea why it works running through release, with and w/o debug, but not when running exported APK? thanks, any help appreciated!


Unfortunately, I do not know right off what would be causing this without looking at code.  The only differences I know of would be if you were using the embedded maps, as they key being used is different between the "Debug" key used from Eclipse, and the production key used for signing an APK, but this shouldn't matter when using a WebView to show the JavaScript version of GoogleMaps.

Please use plain text.
Contributor
towps
Posts: 31
Registered: ‎01-10-2013
My Device: BB10 alpha dev simulator
My Carrier: ATT

Re: Google Maps in webview

i fixed my issue by commenting out proguard.

the problem surfaced after the export and that was the only thing i could think of during the export process that could interfere with this.

Please use plain text.
Regular Contributor
_NishantShah
Posts: 76
Registered: ‎07-31-2012
My Device: Blackberry
My Carrier: Vodafone

Re: Google Maps in webview

Did anybody manage to find solution? I have the same issue.

 

Regards,

Nishant Shah

Please use plain text.
New Contributor
aquinzain
Posts: 3
Registered: ‎02-18-2013
My Device: Z10
My Carrier: Orange

Re: Google Maps in webview

Hi,

 

I have not found a solution.

A blackberry contact told us they are aware about this issue.

I hope this will be solved in a future update.

 

Regards,

Antoine

Please use plain text.
Regular Contributor
_NishantShah
Posts: 76
Registered: ‎07-31-2012
My Device: Blackberry
My Carrier: Vodafone

Re: Google Maps in webview

[ Edited ]

Okay, anyways thanks for replying. My application highly relies on maps. Hope, it gets resolved soon.

 

Regards,

Nishant Shah

Please use plain text.
New Contributor
Michae_T_Kelly
Posts: 5
Registered: ‎07-06-2010
My Device: Curve 8530
My Carrier: Verizon

Re: Google Maps in webview

The way I was able to get around the issue was to add code in my custom WebChromeClient's onConsoleMessage method to detect when I get the error that shows that the page is not going to work.  When it detects this, it lets the fragment that contains my webview know that it needs to reload the webview.  This is not the best solution, but it does force the webview to keep trying until it gets it right.  Since my web pages are bundled with the app, I do not see a large delay in the time it takes to display the maps.

Please use plain text.