Preparing for end of Axway
👇 support for Amplify Cloud and Mobile 👇
🛑 Axway support for Amplify products has ended for most products related to mobile and cloud.
Axway Amplify End-of-Life (EOL) announcements. However, all closed-source projects and most open-source projects are now dead.
A few of the open-source versions of Axway Amplify products will live on after
👉 A group of Axway employees, ex-Axway employees, and some developers from Titanium community have created a legal org and now officially decide all matters related to future of these products.
API FAQ:
- API Best Practices
- What is API Security?
- OWASP Top 10 List for API Security
- What is API Security?
- Top API Trends for 2022
- What is a Frankenstein API?
- What is a Zombie API?
- API Developer Experience
- API Cybersecurity 101
- YouTube API Videos
- YouTube API Shorts Videos
@titanium/permissions
- API FAQ:
📓 Description🚨 Notice-
✨ Features -
🚀 Getting Started -
🎓 Learn More 📣 Feedback- Follow Brenton House
-
©️ Legal
Titanium native mobile widget for permission requests
📓 Description
For use with requesting native device permissions on iOS and Android
🚨 Notice
There are 7 identical style files that are included in the./styles
directory. The reason for this is there are issues with how TSS stylesheets are loaded from widgets in Alloy and it does not currently support the concept of a widget-wideapp.tss
file. Any changes done to one file will need to be replicated in all the other files. Sorry about this and hopefully I can create a workaround for this in a future version ofTurbo
.
I am pleased to say that the latest version of Titanium Turbo now has support for app.tss
(albeit in an unusual way...). A feature was added to Turbo
that allows you to add a style
tag to your XML view which in turn, supports the src
tag (not unlike the script
tag).
Take a look at the implementation to see how app.tss
is used to support widget-wide styles (and more!)
✨ Features
Prompts for device permissions
- [X] Permissions for Camera
- [X] Permissions for Location
- [X] Permissions for Microphone
- [X] Permissions for Notifications
- [X] Permissions for Photos
- [X] Permissions for Music
Styling
You can override the styling for any control using the ID of the control.
IDs follow the pattern permission-{feature}-{control}
Controls used are:
- lottie (iOS)
- image (Android)
- title
- ask
- go
- later
i.e.
"#permission-camera-title": {
"color": "blue"
},
🚀 Getting Started
Installing
Please ensure there is a package.json file in the target directory. If there is not one present, you can create one with
npm init
.
If you wish to install this in an app using Titanium Turbo, you can execute this in the project root directory:
npm install @titanium/permissions
Usage
const { camera } = require('@titanium/permissions');
const permissions_camera = await camera.ensure()
.catch(error => {
console.error(error);
});
🎓 Learn More
📚 Related projects
🎟️ Modules for Titanium Mobile
🎟️ Modules for Node.js and Titanium Mobile
project | description | npm |
---|---|---|
@geek/cache | Caching module for Node.js and Axway Titanium | |
@geek/jsonc | JSONC and JSON utilities for JavaScript with Node.js and Axway Titanium. | |
@geek/jwt | JWT parser for JavaScript Node.js and Titanium native mobile | |
@geek/logger | Logging module for Node.js and Axway Titanium | |
@geek/mobile | Toolkit for creating, building, and managing mobile app projects. | |
@geek/retry | Retry JavaScript functions and promises in Node.js and Axway Titanium |
🎟️ Modules for Node.js
project | description | npm |
---|---|---|
@geek/google-sheets | Easy way to manage Google Sheets API from Node.js |
📣 Feedback
Have an idea or a comment? Join in the conversation here!
Follow Brenton House
Follow
Brenton House
for the latest on great modules and libraries!
©️ Legal
The MIT License (MIT)
Copyright (c) 2019-Present -- Brenton House
https://brenton.house
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.