analytics_flutter
analytics_flutter copied to clipboard
No podspec
Hi,
We are facing an issue when trying to implement IDFA plugin :
[!] No podspec found for 'segment_analytics_plugin_idfa' in '.symlinks/plugins/segment_analytics_plugin_idfa/ios'
Maybe there is a mistake on the configuration of the podspec on your side ?
Thank you for investigating.
Hi @devmobile-vulog thank you for your report. We start looking into this.
Hi @edsonjab,
Any news to share about this issue and your investigations ?
Thank you !
hi @devmobile-vulog sorry to answer late:
You can use this configuration on you pubspec.yaml, it should download the pod from your repo:
And you can call like this on your code:
Hi @edsonjab
It works fine, thank you.
However, now i am not able to apply the IDFA Plugin to the analytics client instance. When trying to call addPlugin(PluginIdfa()) method, i am faced to this error :
The argument type 'PluginIdfa' can't be assigned to the parameter type 'Plugin'
Maybe i am missing something about the configuration. The documentation says : Follow the instructions for adding plugins on the main Analytics client but the url is not working anymore.
Could you please provide the right url or tell me what i am missing please ?
Thank you !
Hi @devmobile-vulog this the new URL with the instructions to add plugins.
Hi @edsonjab ,
Thank you for providing the right url. Everything seems to be good on configurations side.
However, there is still an error when trying to add the plugin: it seems that there is a conflict on imports into the package, and an alias is missing for the 'plugin.dart' import into 'analytics.dart' class (I think there is a name conflit with another Plugin class) causing the following error :
The argument type 'PluginIdfa' can't be assigned to the parameter type 'Plugin'
Thank you !
Hi @devmobile-vulog you need to add your dependencies like this:
If you trying using the code of the repo need to add a cast on the line to works for the differences between imports like this:
We are also facing the same issue.
No podspec found for segment_analytics_plugin_idfa in .symlinks/plugins/segment_analytics_plugin_idfa/ios
In pubspec.yaml file we have added this
segment_analytics: ^1.0.2 segment_analytics_plugin_idfa: ^1.0.0
Updating the podspec name to segment_analytics_plugin_idfa fixes this issue.