App Endpoints
/app/optional-features
Optional features provide additional functionality beyond the core application. They're defined in the Backstack dashboard, enforced like any other feature, and can be monetized.
if(hassAccess('add-free')) {
// Show ad-free experience
}
List optional features
Provide a list of optional features available for the current app version and account.
GET /app/optional-features
Returns a collection list of optional features.
{
"success": true,
"message": "",
"payload": [
{
"fee": 699,
"title": "Ad-Free Experience",
"description": "Remove application ads.",
"more_info": "No banner ads|No video ads|No pop-up ads",
"image": "",
"id": "add-free",
"active": true
},
{
"fee": 999,
"title": "Augmented Reality",
"description": "AR features for an enhanced experience.",
"more_info": "AR overlays|Interactive AR elements|AR navigation",
"image": "",
"id": "augmented-reality",
"active": false
},
...
]
}
Toggle feature activation
Toggles the optional feature active
boolean value.
POST /app/optional-features
{
"feature_id": "premium-support"
}
Returns the id
and active
status of the feature.
{
"success": true,
"message": "Premium Support feature deactivated.",
"payload": {
"id": "premium-support",
"active": false
}
}
Related information
- /account/optional-features - Show a history of optional feature activations.
- Monetization - How to charge for optional features.