
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
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.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.