
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
capacitor-appsflyer
Advanced tools
Currently only works on ios, but android support will be coming soon
setCurrencyCode()setСustomerUserID()anonymizeUser()setIsStopped()getAppsFlyerUID()logEvent()getSdkVersion()setAppInviteOneLinkID()generateInviteLink()logCrossPromotionImpression()logCrossPromotionAndOpenStore()setSharingFilter()setSharingFilterForAllPartners()disableCollectASA()setDisableAdvertisingIdentifier()setOneLinkCustomDomains()enableFacebookDeferredApplinks()setPhoneNumber()setUserEmails()validateAndLogInAppPurchase()setUseReceiptValidationSandbox()setHost()addPushNotificationDeepLinkPath()setResolveDeepLinkURLs()disableSKAD()AppDelegate.swift (usually ios/App/App/AppDelegate.swift)...
import AppsFlyerLib
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
...
func applicationDidBecomeActive(_: UIApplication) {
Appsflyer.shared.applicationDidBecomeActive()
}
...
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
...
Appsflyer.shared.application(open: url, options: options)
...
}
...
func application(_: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
...
Appsflyer.shared.application(continue: userActivity, restorationHandler: restorationHandler)
...
}
...
func application(_: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) {
Appsflyer.shared.application(didReceiveRemoteNotification: userInfo)
}
...
func application(_: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
...
Appsflyer.shared.application(didRegisterForRemoteNotificationsWithDeviceToken: deviceToken)
...
}
...
}
app.module.ts)...
import { Appsflyer } from 'capacitor-appsflyer'
@NgModule({
...
providers: [
...
Appsflyer,
],
})
export class AppModule {}
app.component.ts)...
import { Appsflyer } from 'capacitor-appsflyer'
@Component()
export class AppComponent {
constructor(private appsflyer: Appsflyer) {
this.platform
.ready()
.then(() => {
this.appsflyer.addListener('onConversionDataSuccess', (data) => {
console.log('AppsflyerPlugin onConversionDataSuccess', data)
})
})
}
}
AppsFlyer proxy-class has been removed.
In ios/App/App/AppDelegate.swift, update the following:
func applicationDidBecomeActive(_: UIApplication) {
- Appsflyer.shared.applicationDidBecomeActive()
+ AppsFlyerLib.shared().start()
}
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
- Appsflyer.shared.application(open: url, options: options)
+ AppsFlyerLib.shared().handleOpen(url, options: options)
return ApplicationDelegateProxy.shared.application(app, open: url, options: options)
}
func application(_ app: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
- Appsflyer.shared.application(continue: userActivity, restorationHandler: restorationHandler)
+ AppsFlyerLib.shared().continue(userActivity, restorationHandler: nil)
return ApplicationDelegateProxy.shared.application(app, continue: userActivity, restorationHandler: restorationHandler)
}
func application(_: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
- Appsflyer.shared.application(didReceiveRemoteNotification: userInfo)
+ AppsFlyerLib.shared().handlePushNotification(userInfo)
}
func application(_: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data)
{
- Appsflyer.shared.application(didRegisterForRemoteNotificationsWithDeviceToken: deviceToken)
+ AppsFlyerLib.shared().registerUninstall(deviceToken)
NotificationCenter.default.post(name: .capacitorDidRegisterForRemoteNotifications, object: deviceToken)
}
// TODO docs
FAQs
Appsflyer capacitor plugin
We found that capacitor-appsflyer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.