AppsFlyerSDK / appsflyer-flutter-plugin

Flutter Plugin for AppsFlyer SDK
MIT License
148 stars 116 forks source link

Where to call setCustomerIdAndLogSession() or setCustomerId() #263

Open swatiElegant opened 1 year ago

swatiElegant commented 1 year ago

I want to set CUID in my app via this SDK. for this I need to call init() first then wait then start() function as per mention in official document. but in this SDK there is no such method like start() so how would I set CUID ?

jbankz commented 1 year ago

I am facing this same issue as well as i am unable to complete the steps described in step 4 here integrating with mixpanel

swatiElegant commented 1 year ago

I am facing this same issue as well as i am unable to complete the steps described in step 4 here integrating with mixpanel

I'm placing flow which I follow as per AppsFlyer care team:

makeATTPermission(); final AppsFlyerOptions options = AppsFlyerOptions( afDevKey: DotEnv().env["DEV_KEY"], appId: "12345678", showDebug: true, timeToWaitForATTUserAuthorization: 60 ); ApiUtils.appsflyerSdk = AppsflyerSdk(options); // setCustomerId if you have .....otherwise set after when you got ApiUtils.appsflyerSdk.setCustomerUserId(); await ApiUtils.appsflyerSdk.initSdk( registerConversionDataCallback: true, registerOnAppOpenAttributionCallback: true, registerOnDeepLinkingCallback: true, )

//Then you can set customerId once the user login or available ApiUtils.appsflyerSdk.setCustomerUserId();

check this if it needfull for you.

jbankz commented 1 year ago

I am facing this same issue as well as i am unable to complete the steps described in step 4 here integrating with mixpanel

I'm placing flow which I follow as per AppsFlyer care team:

makeATTPermission(); final AppsFlyerOptions options = AppsFlyerOptions( afDevKey: DotEnv().env["DEV_KEY"], appId: "12345678", showDebug: true, timeToWaitForATTUserAuthorization: 60 ); ApiUtils.appsflyerSdk = AppsflyerSdk(options); // setCustomerId if you have .....otherwise set after when you got ApiUtils.appsflyerSdk.setCustomerUserId(); await ApiUtils.appsflyerSdk.initSdk( registerConversionDataCallback: true, registerOnAppOpenAttributionCallback: true, registerOnDeepLinkingCallback: true, )

//Then you can set customerId once the user login or available ApiUtils.appsflyerSdk.setCustomerUserId();

check this if it needfull for you.

The issue i am having is integrating it with mixpanel......there is no start() actin on appflyer

swatiElegant commented 1 year ago

I am facing this same issue as well as i am unable to complete the steps described in step 4 here integrating with mixpanel

I'm placing flow which I follow as per AppsFlyer care team: makeATTPermission(); final AppsFlyerOptions options = AppsFlyerOptions( afDevKey: DotEnv().env["DEV_KEY"], appId: "12345678", showDebug: true, timeToWaitForATTUserAuthorization: 60 ); ApiUtils.appsflyerSdk = AppsflyerSdk(options); // setCustomerId if you have .....otherwise set after when you got ApiUtils.appsflyerSdk.setCustomerUserId(); await ApiUtils.appsflyerSdk.initSdk( registerConversionDataCallback: true, registerOnAppOpenAttributionCallback: true, registerOnDeepLinkingCallback: true, ) //Then you can set customerId once the user login or available ApiUtils.appsflyerSdk.setCustomerUserId(); check this if it needfull for you.

The issue i am having is integrating it with mixpanel......there is no start() actin on appflyer

My Apologies for misunderstanding....but, can you share me that how much method you can use from appsflyer right now? because .initSdk is enough to start sdk.

jbankz commented 1 year ago

I am facing this same issue as well as i am unable to complete the steps described in step 4 here integrating with mixpanel

I'm placing flow which I follow as per AppsFlyer care team: makeATTPermission(); final AppsFlyerOptions options = AppsFlyerOptions( afDevKey: DotEnv().env["DEV_KEY"], appId: "12345678", showDebug: true, timeToWaitForATTUserAuthorization: 60 ); ApiUtils.appsflyerSdk = AppsflyerSdk(options); // setCustomerId if you have .....otherwise set after when you got ApiUtils.appsflyerSdk.setCustomerUserId(); await ApiUtils.appsflyerSdk.initSdk( registerConversionDataCallback: true, registerOnAppOpenAttributionCallback: true, registerOnDeepLinkingCallback: true, ) //Then you can set customerId once the user login or available ApiUtils.appsflyerSdk.setCustomerUserId(); check this if it needfull for you.

The issue i am having is integrating it with mixpanel......there is no start() actin on appflyer

My Apologies for misunderstanding....but, can you share me that how much method you can use from appsflyer right now? because .initSdk is enough to start sdk.

Check this out, this is what i want to achieve