xamarin android customtabs NavigationEvent won't call - xamarin.android

I'm using android.suport.customtabs in xamarin to show webpages,
i can't get NavigationEvent to be called, when pages are done loading.
i followed the sample from here:
https://github.com/xamarin/AndroidSupportComponents/blob/master/customtabs/samples/ChromeCustomTabsSample/MainActivity.cs
But can't get it to work.
It opens the page, and i can customize it, but NavigationEvent never gets called, what are the sample missing??
please any info would be a big help.

Related

How to prevent reload on Tizen Public Preview Deeplink?

I'm writing a web app for Tizen Smart TV. One of the required features is implementing the Smarthub Public Preview deeplinking.
I have setup the app to open at a specific content when the Public preview tile is clicked. However, I cannot prevent the app to reload. The documentation mentions adding the appcontrol event to the window event listeners, but I don't think this event is being recognized by the app, since the code is not executed.
It only works if I directly add my deeplink() method to the onload property.
According to documentation, this piece of code should prevent the app to reload, but it is not working:
<tizen:app-control>
<tizen:src name='index.html' reload='disable'></tizen:src>
<tizen:operation name='http://samsung.com/appcontrol/operation/eden_resume'></tizen:operation>
</tizen:app-control>
window eventListener is not working wither:
onload="window.addEventListener('appcontrol', deepLink)"
Any help on how to implement this correctly?
Thank you in advance
You are probably modyfing window.location in the app (ie in router).
reload='disable' prevents reloading index.html. When application receives app control request and page is different, application will be reloaded.
You can find more about appcontrol in Tizen documentation (note that Tizen for TV may differ from other devices):
https://docs.tizen.org/application/web/guides/app-management/app-controls/
I've got some information regarding your question.
To do application resume without Page reload,
Set extra data in app-control like below
key: SkipReload
value: Yes

Double message on ios when get geolocation

I have created an ios app (Xcode) with a single WebKit View component that loads an external website. This website tries to get the current geolocation with this Javascript: navigator.geolocation.
This all works fine, but the problem is, I get 2 messages:
First a message for the app: 'Allow "NameApp" to access your location while you are using the app?'
Second a message for the webview: 'https://mywebsite.com would like to use your current location'.
I have seen similar questions about this issue, but they all went about a native/offline Cordova app. I have an online app in my Webview.
How can I prevent this double message? Or a workaround for this problem?
I used the WebViewGold for iOS app template for it & it worked out of the box without second / repeated dialog. Maybe helps other developers/no-code guys.

Intercom icon does not appear after login (Intercom-rails)

I am trying to use 'intercom-rails' in my app. I followed the installation from here : https://github.com/intercom/intercom-rails. Now Im able to see the chat icon and chat.
However, if I login, the chat icon disappears. It does not appear even after logging out.
Any help ?
It probably means something is causing the Intercom JavaScript code to crash or not report the needed information to be activated.
First, check your browser JavaScript console for errors. If there is something wrong when rendering the Intercom widget, it will show up there.
Then, I suggest that you look into your HTML code using the "View Source" function on your browser and take a look at how the Intercom Javascript code is being rendered when the chat icon does not appear.
You should see something like this:

UIWebView Stops Entire App When Double Tap

I have an iOS app that stops responding if a user double clicks any link in the UIWebView. I have no output in the log when this happens, it just stops responding. I'm not sure how to debug, or get any more information from this problem. Does anyone have any suggestions on how I can proceed? I vaguely remember this being an endless loop glitch within UIWebView from an earlier app I created, however I cannot find any record of this online or in the latest XCode.
If anyone has advice as to where I can pull data from to help identify the problem, I would be very appreciative. So far I've monitored NSLog output and the crash logs on the iPhone.
All of the JavaScript and actions taken by a UIWebView occur on the main thread; which is probably causing the hanging behavior.
I would assign a class to the the delegate of the UIWebView and implement the 'webView:shouldStartLoadWithRequest:navigationType:' method of the delegate. This method gets called on each request made by the UIWebView. Logging within this can show you what AJAX calls or other resource calls are being made by the web app.
Try to review my answer. it may help you.
<html>
<body>
<a href=\"http://www.google.com\" target=\"_blank\" title=\"Google Link\"
name=\"Google\">http://www.google.com</a>
</body>
</html>
i have added link "www.google.com" in html string. Now When user click on the link it will open into iPhone default browser.
Don't forget to add UIWebview Delegate Method in you Code.

BlackBerry BrowserField Issue

My BlackBerry app uses BrowserField to display web pages. I have implemented the eventOccurred() method for the RenderingApplication. The first page loads fine. EVENT_BROWSER_CONTENT_CHANGED is fired after the URL is requested (EVENT_URL_REQUESTED) and the first page loads fine.
A button on the first page redirects to a different page. This works on a regular browser. On the simulator, the same page gets loaded again when the button is clicked. When I debug, I see that the EVENT_URL_REQUESTED is getting fired but the event.getURL() is same as the first page URL. I don't understand whats going on and if I am missing anything very obvious. Can anyone help please?

Resources