The purpose of this application is to demonstrate how the Flybits Concierge SDK can be integrated into a client application.
- Configure Concierge programmatically with
FlybitsConciergeConfiguration.Builder, a code example can be found inGlobalApplication.kt,Config.ktandConfig.java. Alternatively, Concierge can be configured with theConciergeConfiguration.jsonfile that has to be created and placed in theapp/src/main/assetsdirectory. - Add a google-services.json file to the project's /app directory associated with the com.flybits.conciergesample application package name
- Add the Firebase Cloud Messaging (FCM) service account key to your Flybits project's Push Settings on the Flybits developer portal to use FCM Push service
- Add a agconnect-services.json file to the project's /app directory associated with the com.flybits.conciergesample application package name
- Add the EMUI credential and secret to your Flybits project's Push Settings on the Flybits developer portal to use Huawei Push service
- Authentication
- Logout
FlybitsViewProviderregistration- Opt in and out
FlybitsContextPluginregistration- Embedded
ConciergeFragmentdisplay - Full screen
ConciergeActivitydisplay - Push notifications integration
- Navigation component integration
- Zones and Modules
- Kotlin and Java examples of API calls
{
"conciergeConfiguration": {
"projectConfiguration": {
"projectId": "<project ID>",
"gatewayUrl": "<gateway URL>",
"pushProvider": "<fcm | huawei>"
},
"settingsConfiguration": {
"tncUrl": "<terms and conditions URL>",
"privacyUrl": "<privacy URL>",
"showOptOut": <true | false>
},
"webService": "<webservice URL>",
"configuredContainerDefaultHeight": <integer e.g.: 300>,
"uploadPushTokenOnConnect": <true | false>,
"webViewPoolingSize": <integer>
}
}- All values in
ConciergeConfiguration.jsonhave corresponding values in theFlybitsConciergeConfiguration.Builder. - If the
ConciergeConfiguration.jsonis provided in theapp/src/main/assetsthe Concierge SDK will use values provided in it.
- In Android Studio open Menu -> Run -> Edit Configurations...
- In the opened window locate Launch Options section
- In the Launch dropdown select Specified Activity
- In the Activity menu select the Activity desired for launch and click OK
- Locate Run button at the bottom anc click it
- Open
app/src/main/AndroidManifest.xml - Leave the
<intent-filter>uncommented only for the<activity>that you wish to launch - In all other
<activity>s comment out or delete the<intent-filter>
- Make sure that you edit the run configuration with the Run Configuration setup in AndroidManifest steps