mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[MOBILEAPPS-1654] Open in App pop-up implementation in android and iphone (#2889)
* Open in App pop up implementation * review comments addressed * unit test cases added for open-in-app component and aca-mobile-app-switcher-service and review comments addressed * cspell changes * test case build failing issue resolved * review comments addressed of using specific type and void in functions that do not return anything * remaining review comments fixed for type cases * added check for ipad and ipod * checkForIOSDevice function removed and checked for ios device in same line * spacing issues addressed * missing unit tests added and some review comments addressed * app.config.json file updated * removed configuration variables from default Readme file * used only boolean instead of string conversion in app service file * session storage name change * review comments addressed
This commit is contained in:
@@ -56,6 +56,7 @@ import { ContentApiService } from './content-api.service';
|
||||
import { RouterExtensionService } from './router.extension.service';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { DiscoveryEntry, GroupEntry, Group } from '@alfresco/js-api';
|
||||
import { AcaMobileAppSwitcherService } from './aca-mobile-app-switcher.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
@@ -96,7 +97,8 @@ export class AppService implements OnDestroy {
|
||||
private groupService: GroupService,
|
||||
private overlayContainer: OverlayContainer,
|
||||
@Inject(STORE_INITIAL_APP_DATA) private initialAppState: AppState,
|
||||
searchQueryBuilderService: SearchQueryBuilderService
|
||||
searchQueryBuilderService: SearchQueryBuilderService,
|
||||
private acaMobileAppSwitcherService: AcaMobileAppSwitcherService
|
||||
) {
|
||||
this.ready = new BehaviorSubject(this.authenticationService.isLoggedIn() || this.withCredentials);
|
||||
this.ready$ = this.ready.asObservable();
|
||||
@@ -177,6 +179,13 @@ export class AppService implements OnDestroy {
|
||||
});
|
||||
|
||||
this.overlayContainer.getContainerElement().setAttribute('role', 'region');
|
||||
|
||||
const isMobileSwitchEnabled: boolean = this.config.get<boolean>('mobileAppSwitch.enabled', false);
|
||||
if (isMobileSwitchEnabled) {
|
||||
this.acaMobileAppSwitcherService.checkForMobileApp();
|
||||
} else {
|
||||
this.acaMobileAppSwitcherService.reset();
|
||||
}
|
||||
}
|
||||
|
||||
private loadRepositoryStatus() {
|
||||
|
Reference in New Issue
Block a user