Skip to content

Commit

Permalink
Implement the fix to open a url which starts from http (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: varshabhatia <[email protected]>
  • Loading branch information
varshabhatia007 and varshabhatia authored May 23, 2024
1 parent 38883d9 commit be98ddf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hubspot/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

<application>
<application android:networkSecurityConfig="@xml/network_security_config">
<activity
android:name="com.hubspot.mobilesdk.HubspotWebActivity"
android:exported="true"
Expand Down
12 changes: 12 additions & 0 deletions hubspot/src/main/res/xml/network_security_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?><!--
network_security_config.xml
Hubspot Mobile SDK
Copyright (c) 2024 Hubspot, Inc.
-->
<network-security-config>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
</trust-anchors>
</base-config>
</network-security-config>

0 comments on commit be98ddf

Please sign in to comment.