getAdIdOrIdfa static method

Future<String> getAdIdOrIdfa()

By definition, Android plugin will always return advId, iOS plugin will return an empty String if user has opted out.

Implementation

static Future<String> getAdIdOrIdfa() async {
  final String getAdIdOrIdfa =
      await _nativeChannel.invokeMethod(GET_AD_OR_IDFA);
  TBLLogger.log('TabooalaNative | getAdIdOrIdfa = $getAdIdOrIdfa');
  return getAdIdOrIdfa;
}