简体   繁体   中英

User ID in AIR application

is it possible to use a sort of 'user id' inside an AIR application? In my app every user can create and save pictures, but I need the possibility to exchange pictures between users. So, every pictures need to have, in the name, some code related to the user that creates the image (like xxxx_1.jpg, xxx_2.jpg where xxx is the user id).

My AIR app is for iOS and Android

Any idea???

Massimo

Will be necessary to get the device ID and save as key for your user database table. So, you can use the 'userDeviceID'_1.jpg, 'userDeviceID'_2.jpg…

You can try this native extension (works fine for iOS and Android) to get the device ID.

Based on Josh Janusch's comment 'Apple has removed the UDID API from iOS 7', so, try to follow this tutorial I'm going to test it to be sure that really works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM