Control Screen layout via Setting APIs

Controlling Screen layout via Setting APIs

The native mobile app allows us to control screen layout setting via 2 Core API

  1. Core App Setting API: This API collect all settings of each app then build the display layout
  2. Core Site Setting API: This API allows the app to define the setting for each screen display on Mobile. Support blocks and able to combine layout

Extend Core App Settings API

API Route: /core/app-settings?access_token=token 
This API register all apps to the Native Mobile App. Implement getAppSetting in PostApi and getMobileSettings method in PostResource & PostCategoryResource classes
 
PostApi.php  Expand source
<?php
class PostApi extends AbstractResourceApi implements ActivityFeedInterface, MobileAppSettingInterface
{
/.../
/**