Giter Site home page Giter Site logo

Comments (11)

cmtanko avatar cmtanko commented on May 24, 2024

+1
Yeah same for me. Unable to release anymore for targetSDKversion 30. Any update on this please

from titanium-web-dialog.

m1ga avatar m1ga commented on May 24, 2024

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.

m1ga avatar m1ga commented on May 24, 2024

PR #175

from titanium-web-dialog.

riodiep avatar riodiep commented on May 24, 2024

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.

m1ga avatar m1ga commented on May 24, 2024

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.

cmtanko avatar cmtanko commented on May 24, 2024

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.

m1ga avatar m1ga commented on May 24, 2024

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.

riodiep avatar riodiep commented on May 24, 2024

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.

cmtanko avatar cmtanko commented on May 24, 2024

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.

m1ga avatar m1ga commented on May 24, 2024

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.

m1ga avatar m1ga commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.