https://github.com/hansemannn/titanium-apps-flyer
Use the native AppsFlyer SDK's (iOS/Android) in Titanium!
https://github.com/hansemannn/titanium-apps-flyer
android appsflyer ios tidev titanium
Last synced: 28 days ago
JSON representation
Use the native AppsFlyer SDK's (iOS/Android) in Titanium!
- Host: GitHub
- URL: https://github.com/hansemannn/titanium-apps-flyer
- Owner: hansemannn
- License: mit
- Created: 2022-04-26T08:38:26.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-12T12:39:24.000Z (over 3 years ago)
- Last Synced: 2025-01-27T07:11:39.288Z (over 1 year ago)
- Topics: android, appsflyer, ios, tidev, titanium
- Language: Objective-C
- Homepage:
- Size: 15.5 MB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Titanium AppsFlyer SDK

Use the native AppsFlyer SDK's (iOS/Android) in Titanium!
## Requirements
- [x] iOS 15 or later
- [x] Android 5 or later
- [x] Titanium SDK 13.0.0 or later
- [x] An AppsFlyer account
## APIs
### initialize(params)
```js
AppsFlyer.initialize({
devKey: 'YOUR_DEV_KEY',
appID: 'idXXXXXXXXX', // iOS only, set to your App Store ID
authorizationTimeout: 60, // iOS only, used to defer the start() process
debug: true
});
```
### start()
```js
AppsFlyer.start();
```
### requestTrackingAuthorization(callback) (iOS only)
```js
AppsFlyer.requestTrackingAuthorization({ status }) => {
// For example, status === 3 is "authorized"
});
```
### trackingAuthorizationStatus
```js
console.warn('AUTHORIZED: ', AppsFlyer.trackingAuthorizationStatus === 3);
```
### fetchAdvertisingIdentifier(callback)
```js
AppsFlyer.fetchAdvertisingIdentifier({ idfa }) => {
// Use the IDFA (iOS) or AID (Android)
});
```
### logEvent(params)
```js
AppsFlyer.logEvent('my_event', { param1: 'hello', param2: 'world' });
```
## Example
See the example/app.js for details
## License
MIT
## Author
Hans Knöchel