WIP
This commit is contained in:
parent
71aa651f4e
commit
dbac63d2ea
|
@ -16,6 +16,7 @@
|
||||||
<uses-permission android:name="android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE" />
|
<uses-permission android:name="android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
|
android:networkSecurityConfig="@xml/network_security_config"
|
||||||
android:label="FRE ACCESS HUB"
|
android:label="FRE ACCESS HUB"
|
||||||
tools:replace="android:label"
|
tools:replace="android:label"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<network-security-config>
|
||||||
|
<domain-config cleartextTrafficPermitted="true">
|
||||||
|
<domain includeSubdomains="true">freaccess.com.br</domain>
|
||||||
|
</domain-config>
|
||||||
|
</network-security-config>
|
|
@ -10,4 +10,9 @@
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="com.google.firebase.messaging.default_notification_channel_id"
|
android:name="com.google.firebase.messaging.default_notification_channel_id"
|
||||||
android:value="@string/default_notification_channel_id" />
|
android:value="@string/default_notification_channel_id" />
|
||||||
|
<application
|
||||||
|
android:networkSecurityConfig="@xml/network_security_config"
|
||||||
|
android:label="FRE ACCESS HUB"
|
||||||
|
android:icon="@mipmap/ic_launcher">
|
||||||
|
</application>
|
||||||
</manifest>
|
</manifest>
|
|
@ -11,11 +11,10 @@ class DeviceUtil {
|
||||||
static Future<String?> getAndroidId() async {
|
static Future<String?> getAndroidId() async {
|
||||||
try {
|
try {
|
||||||
final String? androidId = await _channel.invokeMethod('getAndroidId');
|
final String? androidId = await _channel.invokeMethod('getAndroidId');
|
||||||
log("secureAndroidId: $androidId");
|
|
||||||
|
|
||||||
return androidId;
|
return androidId;
|
||||||
} on PlatformException catch (e) {
|
} on PlatformException catch (e) {
|
||||||
log("secureAndroidId Failed to get Android ID: '${e.message}'.");
|
log("Failed to get Android ID: '${e.message}'.");
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue