Rectangle 27 4

I have tried both google maps in webview and as a native component. First of all developing for web is easy and fun. It will work in both iphone and android. But android webview performance sucks when you compare to iphone webview. It can be reasonable to use webview in iphone but not in android.

Just look at google maps native app and open google maps from native browser. It lack of performance. Opening time is slow when compared to native version. And you should zoom out and in just by using buttons. As gestures to zoom in and out does not work. This is the main problem I think as users use native app and wants to use gestures. I did not satisfied from webview component at last I switched to native version.

To sum up, If you do not have too much time and want that your app works for both android and iphone, then use webview. But if performance is important and you have time to develop, then use native version. Just go and try both on your phone.

android - Use Google Maps JavaScript API in a WebView or MapView direc...

javascript android google-maps webview android-mapview
Rectangle 27 3

If you have a native Android app then you shouldn't need to rely on Flash or a WebView to play mp4 videos in Android at all. You should use the MediaPlayer class, as discussed in the Android SDK documentation.

You can use that to play your video, so long as you content conforms to the list of supported protocols and formats/codecs. Which mp4 files delivered over HTTP almost certainly do, assuming they're using the H.264 video codec, and a non-crazy audio format.

This is correct. As a general rule, web/HTML interfaces on Android are much slower and buggier than doing them with the Android APIs.

Android Video - Flash is Dead, is HTML5 the only option to play videos...

android flash html5 video-streaming html5-video
Rectangle 27 3

According to https://issues.apache.org/jira/browse/CB-5977, Android plugin support has been removed. Yi Ming Kuan said "The reason we went with CB-5977 is that the webview on newer Android versions will get GPS locks more quickly than the native API, hence its removal. Adding the plugin on Android just adds the necessary permissions to use HTML5 Geolocation in your app."

This explanations helped me a ton, thx. So I could make sure nothing else disturbed the native work of the browser.

Phonegap/Cordova geolocation not working on Android - Stack Overflow

android cordova geolocation
Rectangle 27 1

If you don't need any of the native features phonegap/callback gives you, do not use it. It's a bloated project that will probably add a ton of features you don't need, if you only need a wrapped web application. Just use a regular webview, enable JS, caching etc and load your HTML into it.

Absolutely. there's a bunch of apps using it.

android - Convert Mobile Web into Native Apllication Using WebView/pho...

android ios jquery-mobile cordova
Rectangle 27 2

The Android browser and WebView are very different, WebView is very barebones as it was designed expecting people to use it for very basic showing html webpages. WebView by default has no plugins enabled, no javascript enabled and so on and so on. Never expect that because something works in the browser that it will work in a WebView.

Now in regards to how the media is handled. The Browser has extra features set up to strip the video source from the page and launch it in the native player most of the time. This functionality is not built into WebView. And the native player is very picky about what needs to passed into it as a URI to be able to play it.

Hey Stevy. Yes I enabled many of WebView functionalities that you spoke of to no avail. I have been able to pass the Uri to the MediaPlayer and have it work, but was hoping for a video tag solution. Thanks for your input/ :)

I don't think a video tag solution will work. As far as my understanding goes the only video format supported by the video tag for mobile devices is .mp4 here is a link that says only .mp4 works on android: developers.google.com/interactive-media-ads/docs/sdks/

I'm not sure if a complete answer exists to my question given all the possible variables, but regardless your input has helped steer me away from the Video tag and back towards the MediaPlayer (which after an Eclipse clean project is now playing my .mov link). Thanks.

android - .mov file will play in browser, but not in native MediaPlaye...

android video webview media-player mov
Rectangle 27 1

Else, if you wish to make use of the native browsers search function: For Android : make use of webview's native function For IOS : Also you can make use of webview, with a js tweak. Check this out and this to search exclusive for pdfs

In Javascript : use the window.find() method to search for keyword in the current as per this article

Good luck, hope you found you were looking for in here.

javascript - Angularjs search entire HTML - Stack Overflow

javascript android html angularjs search
Rectangle 27 2

It appears that the Facebook app handles this intent incorrectly. The most reliable way seems to be to use the Facebook API for Android.

Display a Facebook dialog.

The SDK supports several WebView html dialogs for user interactions, such as creating a wall post. This is intended to provided quick Facebook functionality without having to implement a native Android UI and pass data to facebook directly though the APIs.

This seems like the best way to do it -- display a dialog that will post to the wall. The only issue is that they may have to log in first

Well that's not exactly what i was asking for. But anyway thanks for the hint. I Would need to add a seperate menu item for facebook share to make this work...

Yeah, I understood what you meant and it's a bitch but I've had the same problem with the ACTION_SEND intent in my application and Facebook haven't fixed their app, so this seems to be the best alternative

I've just done some more searching and found that there are people all over the internet with this problem and Facebook isn't helping at all. forum.developers.facebook.net/viewtopic.php?pid=255227

Share Text on Facebook from Android App via ACTION_SEND - Stack Overfl...

android facebook android-intent android-sharing
Rectangle 27 2

It appears that the Facebook app handles this intent incorrectly. The most reliable way seems to be to use the Facebook API for Android.

Display a Facebook dialog.

The SDK supports several WebView html dialogs for user interactions, such as creating a wall post. This is intended to provided quick Facebook functionality without having to implement a native Android UI and pass data to facebook directly though the APIs.

This seems like the best way to do it -- display a dialog that will post to the wall. The only issue is that they may have to log in first

Well that's not exactly what i was asking for. But anyway thanks for the hint. I Would need to add a seperate menu item for facebook share to make this work...

Yeah, I understood what you meant and it's a bitch but I've had the same problem with the ACTION_SEND intent in my application and Facebook haven't fixed their app, so this seems to be the best alternative

I've just done some more searching and found that there are people all over the internet with this problem and Facebook isn't helping at all. forum.developers.facebook.net/viewtopic.php?pid=255227

Share Text on Facebook from Android App via ACTION_SEND - Stack Overfl...

android facebook android-intent android-sharing
Rectangle 27 1

If you want to use ShouldStartLoad, you'll need to implement a custom UIWebViewDelegate for the native UIWebView being used. This can get tricky because if you replace the existing delegate with a custom one, you'll lose some of the built-in features that Xamarin.Forms WebView provides. Here is the strategy I use to get the best of both:

[assembly: ExportRenderer (typeof (WebView), typeof (CustomWebViewRenderer))]
public class CustomWebViewRenderer : WebViewRenderer
{
    protected override void OnElementChanged (VisualElementChangedEventArgs e)
    {
        base.OnElementChanged (e);

        if (e.OldElement == null) {

            // Need to capture the existing one so we don't loose functionality 
            // that Xamarin.Forms already has
            var existingDelegate = Delegate;

            // Make sure to pass the existing one to the new one
            Delegate = new MyCustomWebViewDelegate(existingDelegate);
        }
    }
}

public class MyCustomWebViewDelegate : UIWebViewDelegate
{
    readonly UIWebViewDelegate existingDelegate;

    public MyCustomWebViewDelegate(UIWebViewDelegate existing)
    {
        existingDelegate = existing;
    }

    public override bool ShouldStartLoad (UIWebView webView, NSUrlRequest request, UIWebViewNavigationType navigationType)
    {
        // You can customize this instead of returning the existingDelegate method
        return existingDelegate.ShouldStartLoad(webView, request, navigationType);
    }

    public override void LoadFailed (UIWebView webView, NSError error)
    {
        existingDelegate.LoadFailed(webView, error);
    }


    public override void LoadingFinished (UIWebView webView)
    {
        existingDelegate.LoadingFinished(webView);
    }


    public override void LoadStarted (UIWebView webView)
    {
        existingDelegate.LoadStarted(webView);
    }

}

Note* On iOS, WebViewRenderer inherits directly from UIWebView, so you don't have a Control property work with. You are a direct subclass of UIWebView and have access to the properties you would expect. See source here.

MyCustomWebViewDelegate.ShouldStartLoad

c# - Xamarin Forms Handle Hyperlinks in Webview Navigating issue - Sta...

c# xamarin xamarin.ios xamarin.android xamarin.forms
Rectangle 27 1

Yes, all current Chrome Apps for Mobile using the cca toolkit are cordova based and thus use the Native system WebView.

On iOS, this currently seems unlikely to change because of policy restrictions (but hey, who knows).

On Android, the cordova contributors would like to experiment with supporting the use of custom web renderer implementations. This is being discussed as a possible cordova-4.0 major version bump milestone feature, and would thus target fall/winter of 2014. This is really just a dream at this point, but its certainly a feature that is on everyones mind.

I should note, there are a many downsides to doing this, its not all gravy. Using a custom WebView means adding ~20meg to application download size, and means significantly more memory/video memory usage on device. Alternatively, we could ask users to download a separate "cordova-runtime" app from the store (like Adobe Air for Android, or like you have to download a Java Runtime for desktop), but users usually dislike that experience.

Also, with Android 4.4 KitKat now having a chrome-based WebView, which enabled remote debugging and implements many modern web capabilities, the usefulness of a custom WebView is shrinking.

Finally, there is already a project that does what you ask, but isn't cordova based, and is not used by the cca tool: Intel's Crosswalk Project. Just adding it for reference. Their wiki goes over a lot of tradeoffs with their approach.

android - Do 'Chrome Apps for Mobile' use native web-view on each plat...

android ios mobile cordova google-chrome-app
Rectangle 27 0

Not sure Flutter should be disqualified. It doesn't use a Webview; it uses the Sky rendering engine.

Unless I misunderstood the question, disqualified is anything that doesn't have built in binding/reflection. To my knowledge there is only two platforms currently that have built in reflection (outside of using pure native java/objc/swift); and that is NativeScript and Xamarin. The rest you have to typically create a bridge in Java/ObjC to the respective language when you want to call any native api functions. However, with that said I believe Flutter has a future if Google continues working on it.

Which technology projects like Nativescript are there, in the sense a ...

nativescript nativescript-plugin nativescript-cli
Rectangle 27 0

Now let me state few insights that might help you in your decision (based on the idea that you want the map as a part of a native android app, not just a html5 app - correct me if I'm wrong):

From these 3 points I would prefer embedding Google Maps API V3 in a webview. Of course, I might have missed some important features of your app.

choosing right approch to implement google map in android - Stack Over...

android google-maps google-maps-api-3
Rectangle 27 0

I assume you are building an Android App that is Native (Java)

a. Then you will have to build a REST API on top your User Data and implement a Register/Login/Activate Account/Resend Code. Writing and Reading from your Database. You can use Phil Sturgeon's REST API built for Codeigniter https://github.com/philsturgeon/codeigniter-restclient

b. Build an Android WebView to wrap your website without the Address bar Disable address bar in Android webview

Thanks for your answer @seyz4all!...Yes I'm building an Android App with Java, I have to study the option a), the option b) I don't want to use by performance and usability problems...do you know the codeigniter library called tank auth?...I need to analize how to modify this library to call it from my Android App written in Java, do you have any idea about that? thanks a lot!

yes i do and i make use of the library

How to login from an Android app through Tank Auth on a Codeigniter si...

android codeigniter login tankauth
Rectangle 27 0

Is it necessary to open in native web browser? Maybe you could use a WebView

WebView can display content from HTML, CSS and Javascript embedded within the app. For example:

<html>
  <head>
    <title>Xamarin Forms</title>
  </head>
  <body>
    <h1>Xamrin.Forms</h1>
    <p>This is an iOS web page.</p>
    <img src="XamarinLogo.png" />
  </body>
</html>

To display local content using a WebView, you'll need to open the HTML file like any other, then load the contents as a string into the Html property of an HtmlWebViewSource. For more information on opening files, see Working with Files.

var browser = new WebView();
var htmlSource = new HtmlWebViewSource();
htmlSource.Html = @"<html><body>
  <h1>Xamarin.Forms</h1>
  <p>Welcome to WebView.</p>
  </body></html>";
browser.Source = htmlSource;

Yes it is necessary to open local HTML file in native web browser that is the requirement

It clearly mentioned in the question to open native browser..

c# - Load local html file in native web browser in Xamarin Forms - Sta...

c# xamarin xamarin.ios xamarin.forms uwp
Rectangle 27 0

Take a look at the Javascript Interface, it allows you to communicate with a webview and your native app; It's quite easy to use.

I would advise you to rather try to find a normal, all-native solution first though :) Perhaps you can re-forumulate your question and get some help with that too, before resorting to obviously less quality options.

How to login through webview and send data back to the native Android ...

android android-intent login webview
Rectangle 27 0

I assume you are building an Android App that is Native (Java)

a. Then you will have to build a REST API on top your User Data and implement a Register/Login/Activate Account/Resend Code. Writing and Reading from your Database. You can use Phil Sturgeon's REST API built for Codeigniter https://github.com/philsturgeon/codeigniter-restclient

b. Build an Android WebView to wrap your website without the Address bar Disable address bar in Android webview

Thanks for your answer @seyz4all!...Yes I'm building an Android App with Java, I have to study the option a), the option b) I don't want to use by performance and usability problems...do you know the codeigniter library called tank auth?...I need to analize how to modify this library to call it from my Android App written in Java, do you have any idea about that? thanks a lot!

yes i do and i make use of the library

How to login from an Android app through Tank Auth on a Codeigniter si...

android codeigniter login tankauth