fix(android): register setIDFA function correctly for native bridge#317
fix(android): register setIDFA function correctly for native bridge#317ondreyz wants to merge 1 commit intosegmentio:masterfrom
Conversation
|
@ondreyz this doesn't seem to pass our ci tests. Before we investigate further, can I ask why you need to set idfa on Android devices? It is specific to IOS. For reference: |
|
@alanjcharles For my project that is meant to be delivered on Android and iOS, I had to call the set idfa function since it is a requirement for iOS. However, invoking the set idfa function resulted in the code crashing on Android devices. The cause of the error was due to the Hence, the purpose of this PR is to fix the original intention of handling set idfa function calls as no-op on Android devices. |
|
@ondreyz thanks for clarifying. Unfortunately, we can't commit this as it's not passing the ci tests and is not something we have seen other customers ask for. I would recommend creating some conditional logic to only call setIDFA() on IOS devices so it's never invoked on android and doesn't crash your build. |
|
@alanjcharles The ci tests were probably failing due to PR 316 not being merged to master branch at the time when I forked this repository. I have since rebased this branch on top of the latest master branch.
I would also like to point out that in PR 210, one of the listed changes in the PR description is indeed to handle calls to Since the resultant effect of calling However, if you still feel that this fix is unnecessary, then the docs should at least be updated with the example code showing conditional logic to only call |
Fix for #210 function call to
analytics.setIDFAon Android devices