Comments (11)
+1
Yeah same for me. Unable to release anymore for targetSDKversion 30. Any update on this please
from titanium-web-dialog.
can you try
ti.webdialog-android-2.1.0.zip
I've updated the dependencies to https://developer.android.com/jetpack/androidx/releases/browser#version_140_3
One change is Mark PendingIntents as PendingIntent.FLAG_IMMUTABLE for Android 12 compatibility.
from titanium-web-dialog.
PR #175
from titanium-web-dialog.
Hi Michael
I've tried that version but still didn't work.
Each time I tried to open I got the message
[INFO] TiChromeDialog: (main) [22380,754003] No browsers available in this device.
from titanium-web-dialog.
works fine here: Android 12, Pixel 4, example app: opens a green chrome window, I'll get the "open" event and when I click the X it goes back to my app.
Is Chrome installed on the device and is it set as "default browser" in the system settings? In my case I had LightningBrowser as a default so it will open that browser. It doesn't support the colored bar or the "close to app". But when I switch back to Chrome it works fine.
from titanium-web-dialog.
Hey Michael, I am getting the same error
[INFO] TiChromeDialog: (main) [49107,792263] No browsers available in this device.
Chrome is my default browser, I am on Samsung Galaxy S20, a11.
Did try downloading other browsers just in case, but that didn't work either.
from titanium-web-dialog.
it is going into the else case here
https://github.com/appcelerator-modules/titanium-web-dialog/blob/master/android/src/ti/webdialog/TitaniumWebDialogModule.java#L156-L158
that means it doesn't find any browser on your device here:
https://github.com/appcelerator-modules/titanium-web-dialog/blob/8a1cc9d62dd316c961b2eaf74311539d85336ab8/android/src/ti/webdialog/Utils.java#L50-L51
You are not using the latest SDK so you have to make more adjustments like this https://stackoverflow.com/a/65852079.
There might be other things prevent your device from getting the browsers. It would be way easier to use the latest Ti SDK 😉
from titanium-web-dialog.
hi Michael
I'm currently using Ti SDK 10.2.0.v20211006123330. Could you please let me know the latest version that you are using?
It's working for me now by adding this permission which allow getting the browsers.
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
Thank you.
from titanium-web-dialog.
Even worked for me after adding this in the manifest file
<queries> <intent> <action android:name="android.intent.action.VIEW" /> <data android:scheme="http" /> </intent> </queries>
Thanks Michael
from titanium-web-dialog.
Thats interesting. The Ti SDK has that query already:
https://github.com/appcelerator/titanium_mobile/blob/590928ef041a3eeb4f44112386c3c0cfe42b949a/android/app/src/main/AndroidManifest.xml#L17-L20
but for https and the module is trying to open a http page for the browser check. I wonder if that makes a difference and if we change that you don't have to do any changes.
@riodiep I was using 10.1.1.GA but since half the discussion was on slack I knew that there was a 9.3.2 involved and thats why I've mentioned the old SDK. For the unreleased 10.2.0 it normally should work with the queries too. I'm not sure if you can use the ALL PACKAGES query: https://support.google.com/googleplay/android-developer/answer/10158779?hl=en
from titanium-web-dialog.
added the <queries>
part to my PR so it should work right away even without the QUERY_ALL_PACKAGES
from titanium-web-dialog.
Related Issues (15)
- iOS : Format 'url' property to auto prefix 'http' as in Android HOT 2
- App crashes when closing web dialog on x86 Android emulator
- Title not working
- Access data from the web dialog.
- Android: Unable to close web dialog from code
- redirect event for iOS not having the correct (new) url
- Android: more color options HOT 1
- Android: Missing close event? HOT 2
- Android: Url is opened in lowercase mode, case sensitive urls fails HOT 3
- iOS: Crash using some links HOT 1
- Title label and VoiceOver HOT 2
- Android: Cannot use app links to redirect back to the app
- Parity in behaviour between iOS and Android for URLs with special characters HOT 3
- Load event for Android HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from titanium-web-dialog.