Git Product home page Git Product logo

udid-ane's Introduction

Unique Device ID ANE (Android+iOS)

This ANE provides you with some properties which they return different Device Identifiers. You may use them in your apps to identify your users even if your users are uninstalling/re-installing your apps. Nevertheless, make sure to read this blog to learn the differences between the ANE properties and use the one which best suits your app requirements.

This ANE provides you with the following Identifiers:

find the latest asdoc for this ANE here.

AIR Usage

For the complete AS3 code usage, see the demo project here.

import com.myflashlab.air.extensions.udid.UDID;

UDID.init();

if(UDID.OS == UDID.ANDROID) trace(UDID.androidId);
else if(UDID.OS == UDID.IOS) trace(UDID.vendorId);

AIR .xml manifest

<!--
FOR ANDROID:
-->
		<uses-sdk android:targetSdkVersion="28"/>
		<uses-sdk android:minSdkVersion="19"/>
		
		<!--Required if you are using TelephonyManager API or UDID.serialNumber -->
		<uses-permission android:name="android.permission.READ_PHONE_STATE" />
		
		<!--Required if you want to use the Android Advert ID-->
		<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />



<!--
Embedding the ANE:
-->
<extensions>
	<extensionID>com.myflashlab.air.extensions.udid</extensionID>
	
	<!-- dependency ANEs https://github.com/myflashlab/common-dependencies-ANE -->
	<extensionID>com.myflashlab.air.extensions.dependency.androidx.arch</extensionID>
	<extensionID>com.myflashlab.air.extensions.dependency.androidx.core</extensionID>
    <extensionID>com.myflashlab.air.extensions.dependency.androidx.design</extensionID>
    <extensionID>com.myflashlab.air.extensions.dependency.androidx.lifecycle</extensionID>
    <extensionID>com.myflashlab.air.extensions.dependency.googlePlayServices.basement</extensionID>
    <extensionID>com.myflashlab.air.extensions.dependency.googlePlayServices.ads</extensionID>
    <extensionID>com.myflashlab.air.extensions.dependency.googlePlayServices.ads.lite</extensionID>
    <extensionID>com.myflashlab.air.extensions.dependency.googlePlayServices.gass</extensionID>
    <extensionID>com.myflashlab.air.extensions.dependency.overrideAir</extensionID>
	
	<!-- Required if you are using TelephonyManager API-->
	<extensionID>com.myflashlab.air.extensions.permissionCheck</extensionID>
  </extensions>

Requirements

  • Android SDK 19+
  • iOS 10.0+
  • AIR SDK 33+

Permissions

Below are the list of Permissions this ANE might require. Check out the demo project available at this repository to see how we have used the PermissionCheck ANE to ask for the permissions.

Necessary Optional
. SOURCE_PHONE

Commercial Version

https://www.myflashlabs.com/product/unique-device-id-air-native-extension/

UDID ANE

Tutorials

How to embed ANEs into FlashBuilder, FlashCC and FlashDevelop https://support.google.com/googleplay/android-developer/answer/6048248?hl=en
https://play.google.com/about/monetization-ads/ads/ad-id/
https://apsalar.com/2015/06/all-about-idfa/

Premium Support

Premium Support package If you are an active MyFlashLabs club member, you will have access to our private and secure support ticket system for all our ANEs. Even if you are not a member, you can still receive premium help if you purchase the premium support package.

udid-ane's People

Contributors

myflashlab avatar nekofar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.