Code Monkey home page Code Monkey logo

godot-ios-att's Introduction

App Tracking Transparency plugin for Godot Engine

Installation

Use NativeLib-Addon or NativeLib-CLI for installation.

Usage

You should ask user about permission before you start collecting any private data:

  ATT.connect('requestCompleted', self, '_att_completed')
  ATT.request()
 
 func _att_completed(status: int) -> void:
    print('ATT Status: %d'%status)
    # if status == 3 the user permitted data collection
    

Also you can get tracking status at any time by calling:

  var status = ATT.status()

godot-ios-att's People

Contributors

drmoriarty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

godot-ios-att's Issues

issues

hi there
i used applovin max for android and its work fine
am trying to implement it to a project on ios
and the ads not appear but the things is i got +4500 issue on xcode
after i added att from nativLib

here some


ld: warning: direct access in function 'List<OS::VideoMode, DefaultAllocator>::push_back(OS::VideoMode const&)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(os_iphone.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'List<OS::VideoMode, DefaultAllocator>::push_back(OS::VideoMode const&)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(os_iphone.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'List<OS::VideoMode, DefaultAllocator>::push_back(OS::VideoMode const&)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(os_iphone.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'List<OS::VideoMode, DefaultAllocator>::push_back(OS::VideoMode const&)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(os_iphone.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'iOS::is_class_ptr(void*) const' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(ios.iphone.opt.arm64.o)' to global weak symbol 'Object::get_class_ptr_static()::ptr' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'iOS::is_class_ptr(void*) const' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(ios.iphone.opt.arm64.o)' to global weak symbol 'Object::get_class_ptr_static()::ptr' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'Map<int, InputDefault::Joypad, Comparator<int>, DefaultAllocator>::operator[](int const&)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(input_default.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'Map<int, InputDefault::Joypad, Comparator<int>, DefaultAllocator>::operator[](int const&)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(input_default.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'Map<int, InputDefault::Joypad, Comparator<int>, DefaultAllocator>::operator[](int const&)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(input_default.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'Map<int, InputDefault::Joypad, Comparator<int>, DefaultAllocator>::operator[](int const&)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(input_default.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'Map<int, InputDefault::VibrationInfo, Comparator<int>, DefaultAllocator>::operator[](int const&)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(input_default.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'Map<int, InputDefault::VibrationInfo, Comparator<int>, DefaultAllocator>::operator[](int const&)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(input_default.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'Map<int, InputDefault::VibrationInfo, Comparator<int>, DefaultAllocator>::operator[](int const&)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(input_default.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'Map<int, InputDefault::VibrationInfo, Comparator<int>, DefaultAllocator>::operator[](int const&)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(input_default.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'InputDefault::_parse_input_event_impl(Ref<InputEvent> const&, bool)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(input_default.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'InputDefault::_parse_input_event_impl(Ref<InputEvent> const&, bool)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(input_default.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'InputDefault::_parse_input_event_impl(Ref<InputEvent> const&, bool)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(input_default.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'InputDefault::_parse_input_event_impl(Ref<InputEvent> const&, bool)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(input_default.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function 'Map<int, InputDefault::SpeedTrack, Comparator<int>, DefaultAllocator>::operator[](int const&)' from file '/Volumes/HDD (D)/iMac-02/Desktop/asdhka/Madrasati.a(input_default.iphone.opt.arm64.o)' to global weak symbol 'DefaultAllocator::alloc(unsigned long)' from file '/Volumes/HDD (D)/iMac-02/Library/Developer/Xcode/DerivedData/Madrasati-eykgpukvyhcyltcdyizuwfzepcct/Build/Intermediates.noindex/ArchiveIntermediates/Madrasati/BuildProductsPath/Debug-iphoneos/ios-att.a(godot_plugin_class.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

could this casue ads to not appear ?

Questions about installation

What are the Dev Key and Apple App Id used for?
Where can I obtain the Dev Key?

I was unable to find the answers in the documentation nor in the code (this one or Apple's).

Godot 4?

Hello, any chance this could be updated to work with Godot 4?

Undefined symbols for architecture arm64

I'm using an M1 Machine to build a Godot Mobile Game. However, I am receiving the following error after installing this lib using XCode:

Undefined symbols for architecture arm64:
  "Object::emit_signal(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&)", referenced from:
      ATT::requestTracking() in ios-att.a(godot_plugin_class.o)
      ____ZN3ATT15requestTrackingEv_block_invoke in ios-att.a(godot_plugin_class.o)
     (maybe you meant: Object::emit_signal(StringName const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&, Variant const&))
ld: symbol(s) not found for architecture arm64

I have no idea how to fix this, suggestions would be appreciated.

Suggestion for iOS<14

It is my understanding that if the plugin is used with iOS version<14, the plugin does nothing and status is always 0.
For the sake of one-flow, it's better to handle old iOS versions this way:

  1. status() will always return 3
  2. request() will still fire the signal requestCompleted.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.