Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with SDK higher than 27 (SDK_INT 28, 29) #189

Open
anonym24 opened this issue Jul 25, 2019 · 3 comments
Open

Doesn't work with SDK higher than 27 (SDK_INT 28, 29) #189

anonym24 opened this issue Jul 25, 2019 · 3 comments

Comments

@anonym24
Copy link

anonym24 commented Jul 25, 2019

If you set 28 for target sdk it stops getting the id and share dialog (intent) doesn't open anymore.

Can you please fix it?

@anonym24
Copy link
Author

e.g.: if I change in build.gradle:

android {
    compileSdkVersion 27
    buildToolsVersion '27.0.3'

    defaultConfig {
        applicationId "fr.pchab.androidrtc"
        minSdkVersion 15
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
    }

to

android {
    compileSdkVersion 28

    defaultConfig {
        applicationId "fr.pchab.androidrtc"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
    }

it stops working

@Gautam87
Copy link

This happens because of the security related changes in Android Pie
Add networkSecurityConfig in AndroidManifest.xml
<application android:networkSecurityConfig="@xml/network_security_config">

create the file under res>xml>network_security_config.xml

<?xml version="1.0" encoding="utf-8"?> <network-security-config> <domain-config cleartextTrafficPermitted="true"> <domain includeSubdomains="true">192.168.1.2</domain> </domain-config> </network-security-config>
change the "192.168.1.2" to the host domain.

@CodeC0wboy
Copy link

This happens because of the security related changes in Android Pie
Add networkSecurityConfig in AndroidManifest.xml
<application android:networkSecurityConfig="@xml/network_security_config">

create the file under res>xml>network_security_config.xml

<?xml version="1.0" encoding="utf-8"?> <network-security-config> <domain-config cleartextTrafficPermitted="true"> <domain includeSubdomains="true">192.168.1.2</domain> </domain-config> </network-security-config>
change the "192.168.1.2" to the host domain.

Thank you so much, it's help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants