Added test Dialog for Huawei

merge-requests/171/head
Faiz Hashmi 3 years ago
parent 601a0cdbfd
commit 990b830bfa

@ -69,7 +69,7 @@ class AppNotifications {
if (Platform.isAndroid) { if (Platform.isAndroid) {
// await hmsApiAvailability.isHMSAvailable().then((value) async { // await hmsApiAvailability.isHMSAvailable().then((value) async {
if (await Utils.isAppInstalledFromHuawei() && !(await Utils.isGoogleServicesAvailable()) ) { if (await Utils.isAppInstalledFromHuawei()) {
huawei_push.Push.enableLogger(); huawei_push.Push.enableLogger();
var result = await huawei_push.Push.setAutoInitEnabled(true); var result = await huawei_push.Push.setAutoInitEnabled(true);

@ -103,7 +103,7 @@ class _LoginScreenState extends State<LoginScreen> {
if (Platform.isAndroid) { if (Platform.isAndroid) {
try { try {
// await hmsApiAvailability.isHMSAvailable().then((value) async { // await hmsApiAvailability.isHMSAvailable().then((value) async {
if (await Utils.isAppInstalledFromHuawei() && !(await Utils.isGoogleServicesAvailable()) ) { if (await Utils.isAppInstalledFromHuawei() ) {
AppState().setIsHuawei = true; AppState().setIsHuawei = true;
AppNotifications().initHuaweiPush(checkLoginInfo); AppNotifications().initHuaweiPush(checkLoginInfo);
} else { } else {

Loading…
Cancel
Save