TF-1665 Update docs app_grid_configuration.md
(cherry picked from commit b670472d77437336861248a1d785345965b311af)
This commit is contained in:
@@ -13,7 +13,10 @@
|
||||
{
|
||||
"appName": "Contacts",
|
||||
"icon": "ic_contacts_app.svg",
|
||||
"appLink": "https://openpaas.linagora.com/contacts/"
|
||||
"appLink": "https://openpaas.linagora.com/contacts/",
|
||||
"androidPackageId": "xxx",
|
||||
"iosUrlScheme": "xxx",
|
||||
"iosAppStoreLink": "xxx"
|
||||
}
|
||||
```
|
||||
|
||||
@@ -25,12 +28,18 @@ For example:
|
||||
{
|
||||
"appName": "Twake",
|
||||
"icon": "ic_twake_app.svg",
|
||||
"appLink": "http://twake.linagora.com/"
|
||||
"appLink": "http://twake.linagora.com/",
|
||||
"androidPackageId": "xxx",
|
||||
"iosUrlScheme": "xxx",
|
||||
"iosAppStoreLink": "xxx"
|
||||
},
|
||||
{
|
||||
"appName": "App 1",
|
||||
"icon": "ic_twake_app.svg",
|
||||
"appLink": "http://twake.linagora.com/"
|
||||
"appLink": "http://twake.linagora.com/",
|
||||
"androidPackageId": "xxx",
|
||||
"iosUrlScheme": "xxx",
|
||||
"iosAppStoreLink": "xxx"
|
||||
},
|
||||
...
|
||||
]
|
||||
@@ -40,9 +49,30 @@ For example:
|
||||
- `appName`: The name will be showed in App Grid
|
||||
- `icon`: Name of icon was added in `configurations\icons` folder
|
||||
- `appLink`: Service URL
|
||||
- `androidPackageId`: ApplicationId of android app
|
||||
- `iosUrlScheme`: UrlScheme name of the ios app.
|
||||
- `iosAppStoreLink`: iTunes link of the ios app.
|
||||
Allow navigate to store (appStore) if app is not found in the device. Example:
|
||||
`itms-apps://itunes.apple.com/us/app/linshare/id1534003175` or `https://itunes.apple.com/us/app/linshare/id1534003175`
|
||||
|
||||
2. Enable it in [env.file](https://github.com/linagora/tmail-flutter/blob/master/env.file)
|
||||
```
|
||||
APP_GRID_AVAILABLE=supported
|
||||
```
|
||||
If you want to disable it, please change the value to `unsupported` or remove this from `env.file`
|
||||
|
||||
3. Enable open app on mobile(Android/iOS)
|
||||
|
||||
- In `Android 11+` to open another app already installed, you have to add the package with name `ApplicationId`' in [AndroidManifest](https://github.com/linagora/tmail-flutter/blob/master/android/app/src/main/AndroidManifest.xml) inside `queries` tag. Example:
|
||||
```
|
||||
<queries>
|
||||
<package android:name="com.linagora.android.linshare" />
|
||||
</queries>
|
||||
```
|
||||
- - In `iOS 9+` to open another app already installed, you have to add the `UrlScheme`' in [Info.plist](https://github.com/GeekyAnts/external_app_launcher/blob/master/example/ios/Runner/Info.plist) under the `LSApplicationQueriesSchemes` key. Example:
|
||||
```
|
||||
<key>LSApplicationQueriesSchemes</key>
|
||||
<array>
|
||||
<string>linshare.mobile</string>
|
||||
</array>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user