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) {
// await hmsApiAvailability.isHMSAvailable().then((value) async {
if (await Utils.isAppInstalledFromHuawei() && !(await Utils.isGoogleServicesAvailable()) ) {
if (await Utils.isAppInstalledFromHuawei()) {
huawei_push.Push.enableLogger();
var result = await huawei_push.Push.setAutoInitEnabled(true);

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

Loading…
Cancel
Save